client

package
v0.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(brokers []string, mechanism sasl.Mechanism, tlsConfig *tls.Config) (*Client, error)

func (*Client) CreateBrokerConn

func (c *Client) CreateBrokerConn() (*kafka.Conn, error)

func (*Client) CreateControllerConn

func (c *Client) CreateControllerConn() (*kafka.Conn, error)

func (*Client) CreateTopicIfNotExist

func (c *Client) CreateTopicIfNotExist(
	lgr log.Logger,
	topic string,
	entries [][2]string,
) error

func (*Client) ListTopics

func (c *Client) ListTopics() ([]string, error)

Jump to

Keyboard shortcuts

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