segment

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 10 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(cfg Config) *Client

func (*Client) Brokers

func (c *Client) Brokers(ctx context.Context) (result []types.Broker, err error)

func (*Client) ConsumerGroups

func (c *Client) ConsumerGroups(ctx context.Context) (result []types.ConsumerGroup, err error)

func (*Client) Offsets

func (c *Client) Offsets(ctx context.Context) (result []types.Offset, err error)

func (*Client) OffsetsForConsumerGroups

func (c *Client) OffsetsForConsumerGroups(ctx context.Context) (result []types.Offset, err error)

func (*Client) Topics

func (c *Client) Topics(ctx context.Context) (result []types.Topic, err error)

type Config

type Config struct {
	Broker        string
	SASLUsername  string
	SASLPassword  string
	SALSMechanism string
	TLSEnabled    bool
}

Jump to

Keyboard shortcuts

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