Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { ConsumerTopic string ProducerTopic string // Logger is the configurable logger instance to log messages from this // streamclient. If left undefined, a noop logger will be used. Logger *zap.Logger // contains filtered or unexported fields }
Client provides access to the streaming capabilities.
func (*Client) NewConsumer ¶
NewConsumer returns a consumer that can iterate over messages on a stream.
func (*Client) NewConsumerAndProducer ¶
NewConsumerAndProducer is a convenience method that returns both a consumer and a producer, with a single function call.
func (*Client) NewProducer ¶
NewProducer returns a producer that outputs messages to stdout.
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer implements the stream.Consumer interface for standardstream.
type Partition ¶
type Partition struct {
// contains filtered or unexported fields
}
Partition is a single instance of a store, containing messages.
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer represents the object that will produce messages to a stream.
type Store ¶
Store hold the in-memory representation of a data storage service.
var DefaultStore *Store
DefaultStore is the global default store.
Click to show internal directories.
Click to hide internal directories.