Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Unknown represents an unknown streamclient implementation. Unknown Type = "unknown" // Inmem represents the in-memory streamclient implementation. Inmem = "inmem" // Kafka represents the Kafka streamclient implementation. Kafka = "kafka" // Standardstream represents the Standardstream streamclient implementation. Standardstream = "standardstream" )
Variables ¶
View Source
var ErrUnknownConsumerClient = errors.New("unable to determine required consumer streamclient")
ErrUnknownConsumerClient is returned when the desired stream client cannot be inferred from the environment context.
View Source
var ErrUnknownProducerClient = errors.New("unable to determine required producer streamclient")
ErrUnknownProducerClient is returned when the desired stream client cannot be inferred from the environment context.
Functions ¶
func NewConsumer ¶
func NewConsumer(options ...streamconfig.Option) (stream.Consumer, error)
NewConsumer returns a new streamclient consumer, based on the context from which this function is called.
func NewProducer ¶
func NewProducer(options ...streamconfig.Option) (stream.Producer, error)
NewProducer returns a new streamclient producer, based on the context from which this function is called.
Types ¶
Click to show internal directories.
Click to hide internal directories.