Merge pull request 'add opt gracefultimeout broker' (#410) from devstigneev/micro:v4_new_opts into v4

Reviewed-on: #410
This commit is contained in:
2025-12-10 15:22:35 +03:00

View File

@@ -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
func ContentType(ct string) Option {
return func(o *Options) {