Documentation ¶
Index ¶
- type Client
- func (c Client) BrokerAddrs() []string
- func (c *Client) Connect(brokerAddrs []string) (err error)
- func (c Client) Connected() bool
- func (c *Client) Disconnect() (errs []error)
- func (c *Client) Offset(topic string, partition int32, time int64) (offset int64, err error)
- func (c *Client) PartitionConsumer(topic string, partition int32, offset int64) (partitionConsumer sarama.PartitionConsumer, err error)
- func (c *Client) Partitions(topic string) (partitions []int32, err error)
- func (c *Client) Produce(topic string, partition int32, key, value []byte) (offset int64, err error)
- func (c *Client) Reset()
- func (c *Client) SetConfig(config *sarama.Config)
- func (c Client) States() (states []string)
- func (c *Client) Topics() (topics []string, err error)
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 (Client) BrokerAddrs ¶
func (*Client) Disconnect ¶
func (*Client) PartitionConsumer ¶
func (*Client) Partitions ¶
Click to show internal directories.
Click to hide internal directories.