Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher[T any] struct { // contains filtered or unexported fields }
func (*Batcher[T]) SetHandleFn ¶
func (b *Batcher[T]) SetHandleFn(handleFn HandleFunc[T])
type BatcherOption ¶
BatcherOption
func WithDefaultConfig ¶
func WithDefaultConfig[T any]() BatcherOption[T]
func WithSize ¶
func WithSize[T any](size int) BatcherOption[T]
func WithWorkers ¶
func WithWorkers[T any](n int, handleFn HandleFunc[T]) BatcherOption[T]
type HandleFunc ¶
type LoadBalancer ¶
type RoundRobinLB ¶
type RoundRobinLB[T any] struct { // contains filtered or unexported fields }
func (*RoundRobinLB[T]) Resolve ¶
func (lb *RoundRobinLB[T]) Resolve(workers []*Worker[T]) *Worker[T]
type WorkerOption ¶
WorkerOption
func WorkerWithHandleFn ¶
func WorkerWithHandleFn[T any](handleFn HandleFunc[T]) WorkerOption[T]
Click to show internal directories.
Click to hide internal directories.