kafka

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "kafka"
)

Variables

This section is empty.

Functions

func NewSubscriber

NewSubscriber creates a new kafka subscriber

Types

type Config

type Config struct {
	Brokers      []string `yaml:"brokers" json:"brokers"`
	GroupID      string   `yaml:"group_id" json:"group_id"`
	Version      string   `yaml:"version" json:"version"`
	CleanupGroup bool     `yaml:"cleanup_group" json:"cleanup_group"`
}

Config provides configuration to the subscriber

type Subscriber

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

Subscriber implements the Subscriber interface for kafka

func (*Subscriber) Connect

func (s *Subscriber) Connect(ctx context.Context) error

Connect connects to kafka

func (*Subscriber) Disconnect

func (s *Subscriber) Disconnect(ctx context.Context) error

Disconnect disconnects from kafka

func (*Subscriber) Subscribe

func (s *Subscriber) Subscribe(ctx context.Context) error

Subscribe subscribes to bundle updates

func (*Subscriber) Unsubscribe

func (s *Subscriber) Unsubscribe(ctx context.Context) error

Unsubscribe unsubscribes from bundle updates

Jump to

Keyboard shortcuts

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