hello

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FactoryName = "hello-worker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

func (*Factory) Name

func (fac *Factory) Name() string

func (*Factory) NewWorker

func (fac *Factory) NewWorker(helper *worker.Helper) (worker.Worker, error)

func (*Factory) Space

func (fac *Factory) Space() string

type JobInfo

type JobInfo struct {
	Interval string `json:"interval"`
	Greet    string `json:"greet"`
	// contains filtered or unexported fields
}

type Worker

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

func (*Worker) ID

func (worker *Worker) ID() string

func (*Worker) IsStarted

func (worker *Worker) IsStarted() bool

func (*Worker) Start

func (worker *Worker) Start() error

func (*Worker) Stop

func (worker *Worker) Stop() error

Jump to

Keyboard shortcuts

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