Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Module srarma fx module to be provided
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for sarama fx
func (Client) SendMessage ¶
func (kc Client) SendMessage(req SendMessageRequest) error
SendMessage sends a message to the specified kafka topic
type Config ¶
type Config struct { Version string `yaml:"version"` Brokers []string `yaml:"brokers"` Topics []string `yaml:"topics"` ConsumerGroupID string `yaml:"consumer_group_id" mapstructure:"consumer_group_id"` }
Config for the saramafx client
type Params ¶
type Params struct { fx.In Lifecycle fx.Lifecycle ConfigProvider config.Provider // ConsumerGroupHandler needs to be provided by the user of the library Handler sarama.ConsumerGroupHandler `optional:"true"` }
Params to create the client
type SendMessageRequest ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.