kafka

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	BootstrapServers string
	Topics           string
	ConsumerGroup    string
	Net              AdapterNet
	SinkURI          string
	Name             string
	Namespace        string
	// contains filtered or unexported fields
}

func (*Adapter) Cleanup

func (a *Adapter) Cleanup(_ sarama.ConsumerGroupSession) error

func (*Adapter) ConsumeClaim

func (a *Adapter) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (*Adapter) Setup

ConsumerGroupHandler functions to define message consume and related logic.

func (*Adapter) Start

func (a *Adapter) Start(ctx context.Context, stopCh <-chan struct{}) error

type AdapterNet

type AdapterNet struct {
	SASL AdapterSASL
	TLS  AdapterTLS
}

type AdapterSASL

type AdapterSASL struct {
	Enable   bool
	User     string
	Password string
}

type AdapterTLS

type AdapterTLS struct {
	Enable bool
	Cert   string
	Key    string
	CACert string
}

Jump to

Keyboard shortcuts

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