Documentation ¶ Index ¶ func NewConn(ctx context.Context) (*kafka.Conn, error) func NewConnWithOptions(ctx context.Context, o *Options) (conn *kafka.Conn, err error) type Options func NewOptions() (*Options, error) func NewOptionsWithPath(path string) (opts *Options, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewConn ¶ func NewConn(ctx context.Context) (*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) Source Files ¶ View all Source files config.go kafka.go options.go Click to show internal directories. Click to hide internal directories.