github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/trace/coordination_gtrace.go (about) 1 // Code generated by gtrace. DO NOT EDIT. 2 3 package trace 4 5 // coordinationComposeOptions is a holder of options 6 type coordinationComposeOptions struct { 7 panicCallback func(e interface{}) 8 } 9 10 // CoordinationOption specified Coordination compose option 11 type CoordinationComposeOption func(o *coordinationComposeOptions) 12 13 // WithCoordinationPanicCallback specified behavior on panic 14 func WithCoordinationPanicCallback(cb func(e interface{})) CoordinationComposeOption { 15 return func(o *coordinationComposeOptions) { 16 o.panicCallback = cb 17 } 18 } 19 20 // Compose returns a new Coordination which has functional fields composed both from t and x. 21 func (t *Coordination) Compose(x *Coordination, opts ...CoordinationComposeOption) *Coordination { 22 var ret Coordination 23 return &ret 24 }