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) SendPending ¶
func (kc *KafkaClient) SendPending(hash []byte, tx *PendingTx) error
func (*KafkaClient) SendRmPending ¶
func (kc *KafkaClient) SendRmPending(hash []byte, tx *RmPendingTx) error
type PendingMsg ¶
type RmPendingMsg ¶
type RmPendingMsg struct { Topic string `json:"topic"` Source interface{} `json:"source"` Data *RmPendingTx `json:"data"` }
type RmPendingTx ¶
Click to show internal directories.
Click to hide internal directories.