Documentation ¶
Index ¶
- func ConfigAdd(path string)
- func New(ctx context.Context, producer *kafka.Producer) (publisher.Driver, error)
- func NewWithConfigPath(ctx context.Context, producer *kafka.Producer, path string) (publisher.Driver, error)
- func NewWithOptions(ctx context.Context, producer *kafka.Producer, options *Options) publisher.Driver
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Log struct { Level string } }
Options kafka connection options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.