Documentation ¶ Index ¶ type Config func (c *Config) NewReader(ctx context.Context, groupID, topic string, l log.Logger) Reader func (c *Config) NewWriter(ctx context.Context, topic string) Writer type ConfigDI type Reader type Writer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Brokers []string } func (*Config) NewReader ¶ func (c *Config) NewReader(ctx context.Context, groupID, topic string, l log.Logger) Reader func (*Config) NewWriter ¶ func (c *Config) NewWriter(ctx context.Context, topic string) Writer type ConfigDI ¶ added in v1.0.0 type ConfigDI interface { NewWriter(ctx context.Context, topic string) Writer NewReader(ctx context.Context, groupID, topic string, l log.Logger) Reader } type Reader ¶ type Reader interface { Read() ([]byte, error) Close() error } type Writer ¶ type Writer interface { Message(msg []byte) error Close() error } Source Files ¶ View all Source files kafka.go Click to show internal directories. Click to hide internal directories.