client

package
v0.0.0-...-b513e57 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: MIT Imports: 2 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 New

func New(config *sarama.Config) *Client

func (Client) BrokerAddrs

func (c Client) BrokerAddrs() []string

func (*Client) Connect

func (c *Client) Connect(brokerAddrs []string) (err error)

func (Client) Connected

func (c Client) Connected() bool

func (*Client) Disconnect

func (c *Client) Disconnect() (errs []error)

func (*Client) Offset

func (c *Client) Offset(topic string, partition int32, time int64) (offset int64, err error)

func (*Client) PartitionConsumer

func (c *Client) PartitionConsumer(topic string, partition int32, offset int64) (partitionConsumer sarama.PartitionConsumer, err error)

func (*Client) Partitions

func (c *Client) Partitions(topic string) (partitions []int32, err error)

func (*Client) Produce

func (c *Client) Produce(topic string, partition int32, key, value []byte) (offset int64, err error)

func (*Client) Reset

func (c *Client) Reset()

func (*Client) SetConfig

func (c *Client) SetConfig(config *sarama.Config)

func (Client) States

func (c Client) States() (states []string)

func (*Client) Topics

func (c *Client) Topics() (topics []string, err error)

Jump to

Keyboard shortcuts

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