goka

package
v1.0.0-dev.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewEmitter

func NewEmitter(ctx context.Context) (*goka.Emitter, error)

NewEmitter returns connection with default options.

func NewEmitterWithConfigPath

func NewEmitterWithConfigPath(ctx context.Context, path string) (*goka.Emitter, error)

NewEmitterWithConfigPath returns connection with options from config path.

func NewEmitterWithOptions

func NewEmitterWithOptions(ctx context.Context, o *Options) (*goka.Emitter, error)

NewEmitterWithOptions returns connection with options.

Types

type Logger

type Logger struct {
}

func (*Logger) Debugf

func (s *Logger) Debugf(msg string, args ...interface{})

func (*Logger) Print

func (s *Logger) Print(msgs ...interface{})

func (*Logger) Printf

func (s *Logger) Printf(msg string, args ...interface{})

func (*Logger) Println

func (s *Logger) Println(msgs ...interface{})

type Options

type Options struct {
	Brokers []string
	Topic   string
}

Options kafka connection options.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

NewOptionsWithPath unmarshals a given key path into options and returns it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL