subscriber

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriber

type Subscriber[T types.Ordered] struct {
	// contains filtered or unexported fields
}

func Run

func Run[T types.Ordered](log slog.Logger, b broker.Broker[T], workers int, worker Worker[T], kinds ...fmt.Stringer) *Subscriber[T]

func (*Subscriber[T]) Stop

func (s *Subscriber[T]) Stop()

func (*Subscriber[T]) Wait

func (s *Subscriber[T]) Wait()

type Worker

type Worker[T types.Ordered] func(queue <-chan broker.Event[T])

Jump to

Keyboard shortcuts

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