initial import

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-08-09 00:30:36 +03:00
parent d750157d53
commit aad8a578fc
5 changed files with 281 additions and 71 deletions

View File

@@ -111,3 +111,9 @@ type hooksKey struct{}
func Hooks(hooks ...kgo.Hook) broker.Option {
return broker.SetOption(hooksKey{}, hooks)
}
type optionsKey struct{}
func Options(opts ...kgo.Opt) broker.Option {
return broker.SetOption(optionsKey{}, opts)
}