Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaClient ¶
type KafkaClient struct { Topic string *kafka.Writer }
func NewKafkaClient ¶
func NewKafkaClient(addrs []string, topic string) *KafkaClient
func (*KafkaClient) Send ¶
func (kc *KafkaClient) Send(hash []byte, tx *watcher.Transaction) error
type KafkaMsg ¶
type KafkaMsg struct { Topic string `json:"topic"` Source interface{} `json:"source"` Data *watcher.Transaction `json:"data"` }
Click to show internal directories.
Click to hide internal directories.