github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/trace/ratelimiter_gtrace.go (about)

     1  // Code generated by gtrace. DO NOT EDIT.
     2  
     3  package trace
     4  
     5  // ratelimiterComposeOptions is a holder of options
     6  type ratelimiterComposeOptions struct {
     7  	panicCallback func(e interface{})
     8  }
     9  
    10  // RatelimiterOption specified Ratelimiter compose option
    11  type RatelimiterComposeOption func(o *ratelimiterComposeOptions)
    12  
    13  // WithRatelimiterPanicCallback specified behavior on panic
    14  func WithRatelimiterPanicCallback(cb func(e interface{})) RatelimiterComposeOption {
    15  	return func(o *ratelimiterComposeOptions) {
    16  		o.panicCallback = cb
    17  	}
    18  }
    19  
    20  // Compose returns a new Ratelimiter which has functional fields composed both from t and x.
    21  func (t *Ratelimiter) Compose(x *Ratelimiter, opts ...RatelimiterComposeOption) *Ratelimiter {
    22  	var ret Ratelimiter
    23  	return &ret
    24  }