kafka

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: GPL-3.0 Imports: 3 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(addrs []string, username, password string) (*Client, error)

func (*Client) GetChannelStatus

func (c *Client) GetChannelStatus() (int, int)

func (*Client) SendMessageAsync

func (c *Client) SendMessageAsync(msg *Message)

func (*Client) SendMessageSync

func (c *Client) SendMessageSync(msg *Message) error

func (*Client) StartSendingMessage

func (c *Client) StartSendingMessage(sendGoroutineCount, channelSize int, logger *zap.Logger)

func (*Client) StopSendingMessage

func (c *Client) StopSendingMessage()

type Message

type Message struct {
	Topic string
	Value []byte
}

Jump to

Keyboard shortcuts

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