job

package
v0.0.0-...-51e328c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 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 Job

type Job struct {
	ChServerStarted chan bool
	ChQuit          chan os.Signal
	ListenerJobs    []*ListenerJob
}

func NewJob

func NewJob() *Job

func (*Job) GetListenerJob

func (j *Job) GetListenerJob(listenerUUID string) (*ListenerJob, error)

func (*Job) NewListenerJob

func (j *Job) NewListenerJob(listenerUUID string) *ListenerJob

func (*Job) RemoveListenerJob

func (j *Job) RemoveListenerJob(listenerUUID string) error

func (*Job) WaitListenerStart

func (j *Job) WaitListenerStart(database *db.Database, lis *listener.Listener, lisJob *ListenerJob) error

func (*Job) WaitListenerStop

func (j *Job) WaitListenerStop(database *db.Database, lis *listener.Listener) error

type ListenerJob

type ListenerJob struct {
	ListenerUUID string
	ChReady      chan string
	ChError      chan string
	ChQuit       chan string
	ChReqQuit    chan string
}

Jump to

Keyboard shortcuts

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