confluent

package
v1.0.0-dev.98 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func New

func New(ctx context.Context) (publisher.Driver, error)

New returns connection with default options.

func NewWithConfigPath

func NewWithConfigPath(ctx context.Context, path string) (publisher.Driver, error)

NewWithConfigPath returns connection with options from config path.

func NewWithOptions

func NewWithOptions(ctx context.Context, options *Options) publisher.Driver

NewWithOptions returns connection with options.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(producer *kafka.Producer, level string) *Logger

func (*Logger) Start

func (s *Logger) Start()

type Options

type Options struct {
	Log struct {
		Level 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