exqueue

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExQueue

type ExQueue struct {
	Threads int
	// contains filtered or unexported fields
}

func New

func New(conf *viper.Viper) (*ExQueue, error)

New creates a new queue

func (ExQueue) Add

func (l ExQueue) Add(r exRequest) error

Add add request to exList

func (*ExQueue) AddRequest

func (q *ExQueue) AddRequest(r exRequest) error

AddRequest adds a new Request to the queue

func (ExQueue) Get

func (l ExQueue) Get() exRequest

Get get request from exList

func (*ExQueue) OnStart

func (q *ExQueue) OnStart(ctx context.Context) (err error)

OnStart TODO

func (*ExQueue) OnStop

func (q *ExQueue) OnStop(ctx context.Context) (err error)

OnStop TODO

func (ExQueue) Size

func (l ExQueue) Size() (int, error)

Size get the size of exList

Jump to

Keyboard shortcuts

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