server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 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 QueueServer

type QueueServer[T any] struct {
	// contains filtered or unexported fields
}

func NewQueueServer

func NewQueueServer[T any]() *QueueServer[T]

func (*QueueServer[T]) AddJob

func (q *QueueServer[T]) AddJob(job *common.Job[T])

func (*QueueServer[T]) CheckJob

func (q *QueueServer[T]) CheckJob(id string) common.Status

func (*QueueServer[T]) GetJob

func (q *QueueServer[T]) GetJob(id string) (*common.Job[T], bool)

func (*QueueServer[T]) NewJob

func (q *QueueServer[T]) NewJob(content T) (*common.Job[T], error)

func (*QueueServer[T]) NewJobs

func (q *QueueServer[T]) NewJobs() []*common.Job[T]

func (*QueueServer[T]) RemoveJob

func (q *QueueServer[T]) RemoveJob(job *common.Job[T])

func (*QueueServer[T]) UpdateJob

func (q *QueueServer[T]) UpdateJob(job *common.Job[T])

Jump to

Keyboard shortcuts

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