ac

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker[X any] struct {
	Input  <-chan X
	Output chan<- X
	// contains filtered or unexported fields
}

func (*Worker[X]) InitBucket

func (w *Worker[X]) InitBucket(rate time.Duration, burst int)

InitBucket initializes the worker with an access control bucket.

func (*Worker[X]) Work

func (w *Worker[X]) Work(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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