zk

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreatingConsumer = errors.New("error creating consumer")
)

consumer Errors

Functions

This section is empty.

Types

type Consumer

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

func NewChildConsumer

func NewChildConsumer(
	logger log.Logger,
	path string,
	options ...ConsumerOption,
) (*Consumer, error)

func NewConsumer

func NewConsumer(
	logger log.Logger,
	path string,
	options ...ConsumerOption,
) (*Consumer, error)

func (*Consumer) Open

func (c *Consumer) Open() error

type ConsumerOption

type ConsumerOption func(*Consumer)

func WithDelayOnErrConsumerOption

func WithDelayOnErrConsumerOption(d DelayOnErr) ConsumerOption

func WithEndpointConsumerOption

func WithEndpointConsumerOption(end endpoint.Endpoint) ConsumerOption

func WithReconnectOnErrConsumerOption

func WithReconnectOnErrConsumerOption(r ReconnectOnErr) ConsumerOption

func WithZkDriver

func WithZkDriver(d driver.Driver) ConsumerOption

type Decoder

type Decoder func(context.Context, interface{}) (interface{}, error)

type DelayOnErr

type DelayOnErr func(error) time.Duration

type ErrorHandler

type ErrorHandler interface{ transport.ErrorHandler }

ErrorHandler is wrapper on top of kit.transport.ErrorHandler

type ReconnectOnErr

type ReconnectOnErr func(error) bool

Jump to

Keyboard shortcuts

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