add opt gracefultimeout broker #410
@@ -80,6 +80,12 @@ func Context(ctx context.Context) Option {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GracefulTimeout(t time.Duration) Option {
|
||||||
|
return func(o *Options) {
|
||||||
|
o.GracefulTimeout = t
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ContentType used by default if not specified
|
// ContentType used by default if not specified
|
||||||
func ContentType(ct string) Option {
|
func ContentType(ct string) Option {
|
||||||
return func(o *Options) {
|
return func(o *Options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user