ejob

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 4 Imported by: 11

Documentation

Index

Constants

View Source
const PackageName = "task.ejob"

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

Component ...

func (*Component) Init

func (c *Component) Init() error

func (*Component) Name

func (c *Component) Name() string

func (*Component) PackageName

func (c *Component) PackageName() string

func (*Component) Start

func (c *Component) Start() error

func (*Component) Stop

func (c *Component) Stop() error

type Config

type Config struct {
	Name string
	// contains filtered or unexported fields
}

Config ...

func DefaultConfig

func DefaultConfig() *Config

type Container

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

func DefaultContainer

func DefaultContainer() *Container

func (*Container) Build

func (c *Container) Build(options ...Option) *Component

type Ejob

type Ejob interface {
	standard.Component
}

Ejob ...

type Option

type Option func(c *Container)

func WithName

func WithName(name string) Option

func WithStartFunc

func WithStartFunc(startFunc func() error) Option

Jump to

Keyboard shortcuts

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