Documentation ¶
Index ¶
Constants ¶
View Source
const ( OECLogTopic = "oeclog" LogConsumerGroup = "oeclog-consumer-group" HeartbeatTopic = "oeclog-subscriber-heartbeat" HeartbeatInterval = 5 * time.Second ExpiredInterval = 6 * HeartbeatInterval )
Variables ¶
View Source
var KafkaMsgPool = sync.Pool{ New: func() interface{} { return &KafkaMsg{} }, }
Functions ¶
func NewProvider ¶
func NewProvider(logger log.Logger) log.Subscriber
Types ¶
type Subscriber ¶
func NewSubscriber ¶
func NewSubscriber() Subscriber
Click to show internal directories.
Click to hide internal directories.