goworker

package module
v0.0.0-...-6b2d4e0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyStruct

type EmptyStruct struct{}

type WaitExitResult

type WaitExitResult chan EmptyStruct

type Worker

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

func New

func (*Worker) Restart

func (self *Worker) Restart() WorkerControlChanResult

func (*Worker) Start

func (self *Worker) Start() WorkerControlChanResult

func (*Worker) Status

func (self *Worker) Status() *workerstatus.WorkerStatusRO

func (*Worker) Stop

func (self *Worker) Stop() WorkerControlChanResult

func (*Worker) Wait

func (self *Worker) Wait() WaitExitResult

type WorkerControlChanResult

type WorkerControlChanResult chan EmptyStruct

type WorkerI

type WorkerI interface {
	Start() WorkerControlChanResult
	Stop() WorkerControlChanResult
	Restart() WorkerControlChanResult
	Status() *workerstatus.WorkerStatusRO
	Wait() WaitExitResult
}

type WorkerThreadFunction

type WorkerThreadFunction func(

	set_starting func(),
	set_working func(),
	set_stopping func(),
	set_stopped func(),

	is_stop_flag func() bool,

)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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