register

package
v1.0.0-...-a0f063d Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrJobNotFound = errors.New("the job is undefined with this name")

Functions

This section is empty.

Types

type JobMap

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

func NewJobMap

func NewJobMap() *JobMap

func (*JobMap) Get

func (m *JobMap) Get(name string) queue.JobFunc

func (*JobMap) GetMap

func (m *JobMap) GetMap() map[string]queue.JobFunc

func (*JobMap) Invoke

func (m *JobMap) Invoke(name string, args ...any) error

func (*JobMap) Register

func (m *JobMap) Register(jobs ...queue.IJob) queue.IJobMap

func (*JobMap) RegisterWithName

func (m *JobMap) RegisterWithName(name string, fn queue.JobFunc) queue.IJobMap

func (*JobMap) Registers

func (m *JobMap) Registers(fns map[string]queue.JobFunc) queue.IJobMap

Jump to

Keyboard shortcuts

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