Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*config)
An Option adjusts the config for a producer.
func WithMaxLen ¶
WithMaxLen sets the max length for a producer.
func WithMaxLenApprox ¶
WithMaxLenApprox sets the approximate max length for a producer.
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
A Producer writes messages to a stream.
type WriteOption ¶
type WriteOption func(*writeConfig)
A WriteOption is an option to the write method.
func WithField ¶
func WithField(field string, value interface{}) WriteOption
WithField sets a field-value pair in the values for a write.
Click to show internal directories.
Click to hide internal directories.