kafka

package
v1.0.0-beta.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewConn

func NewConn(ctx context.Context) (*kafka.Conn, error)

func NewConnWithConfigPath

func NewConnWithConfigPath(ctx context.Context, path string) (*kafka.Conn, error)

func NewConnWithOptions

func NewConnWithOptions(ctx context.Context, o *Options) (conn *kafka.Conn, err error)

Types

type Options

type Options struct {
	Address   string
	Topic     string
	Partition int
	Network   string
	ConnType  string
}

func NewOptions

func NewOptions() (*Options, error)

func NewOptionsWithPath

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

Jump to

Keyboard shortcuts

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