queue

package
v0.12.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Log is the logger to use for Queue logging.
	Log logr.Logger

	// Client is the etcd client to use for Queue operations.
	Client clientapi.Interface

	// Clock is the clock to use for Queue operations.
	Clock clock.Clock

	// Key is the key to use for Queue operations.
	Key *key.Key

	// SchedulerBuilder is the scheduler builder to use for Queue operations.
	SchedulerBuilder *scheduler.Builder

	// TriggerFn is the trigger function to use for Queue operations.
	TriggerFn api.TriggerFunction

	// ConsumerSink is an optional channel to send informer events to.
	ConsumerSink chan<- *api.InformerEvent

	// Workers is the number of workers to use for processing events in the
	// queue.
	Workers uint32
}

Options are the options for the Queue.

type Queue

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

func New

func New(opts Options) *Queue

func (*Queue) DeliverablePrefixes

func (q *Queue) DeliverablePrefixes(ctx context.Context, prefixes ...string) (context.CancelCauseFunc, error)

func (*Queue) Inform

func (q *Queue) Inform(ctx context.Context, event *queue.Informed)

func (*Queue) Run

func (q *Queue) Run(ctx context.Context) error

Directories

Path Synopsis
loops

Jump to

Keyboard shortcuts

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