Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT = "default" SUBSCRIBE_ALIVE_TOPICS = "subscribeAliveTopics" UNSUBSCRIBE = "unsubscribe" CLOSE = "close" TOPIC_HEARTBEAT = 6 )
Variables ¶
View Source
var KafkaConfig *kafka.ConfigMap
Functions ¶
func ReturnDiffTopicList ¶ added in v0.2.8
Types ¶
type Aggregator ¶
type Aggregator struct {
AggregateType types.AggregateType
}
func (*Aggregator) AggregateMetric ¶
type MetricCollector ¶
type MetricCollector struct { CreateOrder int ConsumerKafkaConn *kafka.Consumer AdminKafkaConn *kafka.AdminClient Aggregator Aggregator Ch chan string }
func NewMetricCollector ¶
func NewMetricCollector(aggregateType types.AggregateType, createOrder int) (MetricCollector, error)
Click to show internal directories.
Click to hide internal directories.