Documentation ¶
Overview ¶
Package kafka implements a kafka client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SendMessage(ctx context.Context, msg *Message) (string, error) NewConsumer(ctx context.Context, topic, group string, handler func(context.Context, *Message) error) (Consumer, error) CreateTopic(ctx context.Context, topic string, numPartitions, replicationFactor int) error Close() error }
Client kafka client interface
Click to show internal directories.
Click to hide internal directories.