queue

package
v0.0.0-...-e8370c2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IController

type IController interface {
	Do(data []byte) error
}

type IWork

type IWork interface {
	GetWork() ([]byte, error)
}

type Queue

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

func NewQueue

func NewQueue(shutdownChannelIn chan bool, workChannelBufferSize int, controller IController) *Queue

func (*Queue) AddWork

func (queue *Queue) AddWork(work IWork) error

Jump to

Keyboard shortcuts

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