Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagBrokers = "brokers" FlagTopics = "subscribe-modules" FlagFeatureToggle = "feature-toggle" KafkaPubTopic = "coinex-dex" )
View Source
const ( CfgPrefixFile = "file:" CfgPrefixKafka = "kafka:" CfgPrefixOS = "os:" )
View Source
const RetryNum = math.MaxInt64
Variables ¶
View Source
var (
EventTypeMsgQueue = "kafka"
)
Functions ¶
Types ¶
type MsgSender ¶
type MsgSender interface { SendMsg(key []byte, v []byte) IsSubscribed(topic string) bool IsOpenToggle() bool GetMode() []string Close() }
func NewProducer ¶
type MsgWriter ¶ added in v0.0.15
func NewFileMsgWriter ¶ added in v0.0.15
func NewKafkaMsgWriter ¶ added in v0.0.15
func NewNopMsgWriter ¶ added in v0.0.15
func NewNopMsgWriter() MsgWriter
func NewStdOutMsgWriter ¶ added in v0.0.15
func NewStdOutMsgWriter() MsgWriter
Click to show internal directories.
Click to hide internal directories.