kafka

package
v0.0.0-...-237b7d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

kafka @author LanguageY++2013 2023/5/11 09:33 @company soulgame

kafka @author LanguageY++2013 2023/5/11 09:54 @company soulgame

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaPublisher

type KafkaPublisher struct {
	// contains filtered or unexported fields
}

func NewKafkaPublisher

func NewKafkaPublisher(brokerList []string) *KafkaPublisher

func (KafkaPublisher) Name

func (p KafkaPublisher) Name() string

func (*KafkaPublisher) Send

func (p *KafkaPublisher) Send(topic string, ev *open.MatchEvent) error

type KafkaSubscriber

type KafkaSubscriber struct {
	pubsub.EventHandlers
	// contains filtered or unexported fields
}

func NewKafkaSubscriber

func NewKafkaSubscriber(brokerList []string, topics []string, group string) (*KafkaSubscriber, error)

func (*KafkaSubscriber) Cleanup

func (*KafkaSubscriber) ConsumeClaim

func (s *KafkaSubscriber) ConsumeClaim(ses sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) (retErr error)

func (KafkaSubscriber) Name

func (s KafkaSubscriber) Name() string

func (*KafkaSubscriber) Setup

func (*KafkaSubscriber) Start

func (s *KafkaSubscriber) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL