Documentation ¶
Index ¶
- func ConfigAdd(path string)
- type Emitter
- func (e *Emitter) Emit(ctx context.Context, topic string, key string, msg interface{}) (*goka.Promise, error)
- func (e *Emitter) EmitSync(ctx context.Context, topic string, key string, msg interface{}) error
- func (e *Emitter) EmitSyncWithHeaders(ctx context.Context, topic string, key string, msg interface{}, ...) error
- func (e *Emitter) EmitWithHeaders(ctx context.Context, topic string, key string, msg interface{}, ...) (*goka.Promise, error)
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
func NewEmitter ¶
NewEmitter returns connection with default options.
func NewEmitterWithConfigPath ¶
NewEmitterWithConfigPath returns connection with options from config path.
func NewEmitterWithOptions ¶
NewEmitterWithOptions returns connection with options.
func (*Emitter) Emit ¶
func (e *Emitter) Emit(ctx context.Context, topic string, key string, msg interface{}) (*goka.Promise, error)
Emit sends a message for passed key using the emitter's codec.
type Options ¶
type Options struct {
Brokers []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.