Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReceiveInterflowCh ¶
func GetReceiveInterflowCh() <-chan *HookMsg
GetReceiveInterflowCh 获取接收消息的通道
Types ¶
type HookMsg ¶
type Interflow ¶
type Interflow interface { // Send 把数据投递给谁 Send(ctx context.Context, to string, msg *HookMsg) error // Receive 接收投递过来的数据 Receive() error // SetHandles 设置回调函数 SetHandles(handles map[consts.TopicType]Callback) error // Close 关闭 Close() error }
func NewHookInterflow ¶
func NewKafkaInterflow ¶
Click to show internal directories.
Click to hide internal directories.