Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpawnConsumer ¶
func SpawnConsumer(kc *KafkaConsumer, redis *redis.Redis, quit <-chan os.Signal)
Types ¶
type KafkaConsumer ¶
type KafkaConsumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
func NewConsumer(host, port, topic, groupID string) (*KafkaConsumer, error)
func (*KafkaConsumer) Close ¶
func (kc *KafkaConsumer) Close()
type KafkaProducer ¶
type KafkaProducer struct { Topic *string // contains filtered or unexported fields }
func NewProducer ¶
func NewProducer(host, port, topic string) (*KafkaProducer, error)
func (*KafkaProducer) Close ¶
func (kp *KafkaProducer) Close()
func (*KafkaProducer) Produce ¶
func (kp *KafkaProducer) Produce(event []byte) error
type NumberEvent ¶
Click to show internal directories.
Click to hide internal directories.