Documentation ¶
Index ¶
- type BinlogBrokerConfig
- type BinlogKafkaBroker
- func (b *BinlogKafkaBroker) Consume(fn func(*types.BinlogEvent) error) error
- func (b *BinlogKafkaBroker) Marshal(event *river.EventData) ([]byte, error)
- func (b *BinlogKafkaBroker) OnAlert(msg *river.StatusMsg) error
- func (b *BinlogKafkaBroker) OnClose(r *river.River)
- func (b *BinlogKafkaBroker) Pipe(river *river.River, from river.From) error
- func (b *BinlogKafkaBroker) String() string
- type TxKafkaBroker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinlogBrokerConfig ¶
type BinlogKafkaBroker ¶
type BinlogKafkaBroker struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *BinlogBrokerConfig) (*BinlogKafkaBroker, error)
func (*BinlogKafkaBroker) Consume ¶
func (b *BinlogKafkaBroker) Consume(fn func(*types.BinlogEvent) error) error
Consume 消费kafka中的数据
func (*BinlogKafkaBroker) Marshal ¶
func (b *BinlogKafkaBroker) Marshal(event *river.EventData) ([]byte, error)
func (*BinlogKafkaBroker) OnClose ¶
func (b *BinlogKafkaBroker) OnClose(r *river.River)
func (*BinlogKafkaBroker) String ¶
func (b *BinlogKafkaBroker) String() string
type TxKafkaBroker ¶
type TxKafkaBroker struct {
// contains filtered or unexported fields
}
func NewTxKafkaBroker ¶
func NewTxKafkaBroker(addrs []string, txInfoTopic string) (*TxKafkaBroker, error)
Click to show internal directories.
Click to hide internal directories.