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