mirror of https://github.com/dtm-labs/dtm.git
2 changed files with 23 additions and 2 deletions
@ -0,0 +1,15 @@ |
|||||
|
package dtmgrpc |
||||
|
|
||||
|
import ( |
||||
|
"github.com/dtm-labs/dtm/client/dtmcli/dtmimp" |
||||
|
) |
||||
|
|
||||
|
// TransBaseOption setup func for TransBase
|
||||
|
type TransBaseOption func(tb *dtmimp.TransBase) |
||||
|
|
||||
|
// WithBranchHeaders setup TransBase.BranchHeaders
|
||||
|
func WithBranchHeaders(headers map[string]string) TransBaseOption { |
||||
|
return func(tb *dtmimp.TransBase) { |
||||
|
tb.BranchHeaders = headers |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue