Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterAdmin ¶
type ClusterAdmin interface {
ListTopics() (map[string]sarama.TopicDetail, error)
}
ClusterAdmin is the kafka cluster admin client
type Consumer ¶
type Consumer interface { ConsumePartition(topic string, partition int32, offset int64) (sarama.PartitionConsumer, error) Partitions(topic string) ([]int32, error) }
Consumer is the kafka consumer client
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the kafka service
func NewService ¶
func NewService(admin ClusterAdmin, consumer Consumer, protoDecoder Decoder) *Service
NewService creates a new kafka service
Click to show internal directories.
Click to hide internal directories.