Documentation ¶
Index ¶
- Variables
- type CfgOption
- type Client
- func (c *Client) CommitRecord(ctx context.Context, record *kayakv1.Record) error
- func (c *Client) CreateTopic(ctx context.Context, topicName string, partitions int64, ttl int64) error
- func (c *Client) DeleteTopic(ctx context.Context, topic string) error
- func (c *Client) FetchRecord(ctx context.Context) (*kayakv1.Record, error)
- func (c *Client) GetRecords(ctx context.Context, topic string, start string, limit int64) ([]*kayakv1.Record, error)
- func (c *Client) PutRecords(ctx context.Context, records ...*kayakv1.Record) error
- func (c *Client) RegisterConsumer(ctx context.Context) error
- func (c *Client) UpdateConfig(options ...CfgOption)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConsumerAlreadyRegistered = store.ErrConsumerAlreadyRegistered ErrTopicEmpty = errors.New("topic cannot be empty") ErrCfgConsumerIDEmpty = errors.New("consumer id must be set when a consumer group exists") ErrCfgConsumerGroupEmpty = errors.New("consumer group must be set when a consumer id exists") )
Functions ¶
This section is empty.
Types ¶
type CfgOption ¶
type CfgOption func(*Config)
func WithAddress ¶
func WithConsumerGroup ¶
func WithConsumerID ¶
func WithHTTPClient ¶
func WithPartitions ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CommitRecord ¶
func (*Client) CreateTopic ¶
func (*Client) FetchRecord ¶
func (*Client) GetRecords ¶
func (*Client) PutRecords ¶
func (*Client) UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.