operator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.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 CompletionMode added in v1.2.0

type CompletionMode int8
const (
	UpdateCompletionMode CompletionMode = iota
	DeleteCompletionMode
)

type Config

type Config struct {
	// Interval between consumer polls
	PollInterval int
	// Number of events to attempt to fetch on each
	// interval
	BatchSize int
	// Postgres connection url
	DatabaseUrl string
	// Comma-separated set of bootstrap urls
	BrokerUrls string
	// List of topics to subscribe to
	Topics []string
	// Defines how gox should handle completed events.
	CompletionMode CompletionMode
}

type Operator

type Operator interface {
	Execute(ctx context.Context) error
	Close(ctx context.Context)
}

func NewOperator

func NewOperator(ctx context.Context, config *Config) (Operator, error)

Jump to

Keyboard shortcuts

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