job

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	*core.BaseCotainer
	// contains filtered or unexported fields
}

Container 工作容器环境,所有的工作都在本容器环境中执行

func NewContainer

func NewContainer(ctx context.Context, conf *config.JSON) (c *Container, err error)

NewContainer 通过上下文ctx和JSON配置conf生成工作容器环境 当container job id小于0时,会报错

func (*Container) Start

func (c *Container) Start() (err error)

Start 工作容器开始工作

Jump to

Keyboard shortcuts

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