stream

package
v0.0.0-...-f3add34 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaClient

func NewKafkaClient(cfg Config) (sarama.Client, error)

Types

type Config

type Config struct {
	Brokers []string
}

type EventPublisher

type EventPublisher struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewEventPublisher

func NewEventPublisher(client sarama.Client) *EventPublisher

func (*EventPublisher) Close

func (ep *EventPublisher) Close()

func (*EventPublisher) Publish

func (ep *EventPublisher) Publish(ctx context.Context, topic topicName, key string, pbMessage proto.Message) error

Jump to

Keyboard shortcuts

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