controller

package
v0.0.0-...-d843dc6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller[T any] struct {
	*ControllerOption
	// contains filtered or unexported fields
}

func New

func New[T any](opts ...Option) *Controller[T]

func (*Controller[T]) Err

func (c *Controller[T]) Err() error

func (*Controller[T]) From

func (c *Controller[T]) From(source <-chan T) *Controller[T]

func (*Controller[T]) Handle

func (c *Controller[T]) Handle(handler func(T)) *Controller[T]

func (*Controller[T]) Run

func (c *Controller[T]) Run() error

type ControllerOption

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

type Option

type Option func(*ControllerOption)

func WithContext

func WithContext(ctx context.Context) Option

func WithQueue

func WithQueue(queue workqueue.WorkQueue) Option

func WithWorkers

func WithWorkers(workers int) Option

Jump to

Keyboard shortcuts

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