controllerqueue

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxRetries

func MaxRetries(n int) option

func NumWorkers

func NumWorkers(n int) option

func Period

func Period(d time.Duration) option

Types

type Queue

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

func New

func New(name string, f QueueFunc, opts ...option) *Queue

func (*Queue) Add

func (cq *Queue) Add(item interface{})

func (*Queue) Get

func (cq *Queue) Get() (interface{}, bool)

func (*Queue) Len

func (cq *Queue) Len() int

func (*Queue) Start

func (cq *Queue) Start(quit <-chan struct{})

type QueueFunc

type QueueFunc func(interface{}) error

Jump to

Keyboard shortcuts

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