implement1

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyExecutorOption

type EmptyExecutorOption struct{}

empty option

type Executor

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

func Execute

func Execute(opts ...ExecutorOption) (executor *Executor, err error)

func ExecuteContext

func ExecuteContext(ctx context.Context, opts ...ExecutorOption) (executor *Executor, err error)

func (*Executor) PrintExecutorInfo

func (e *Executor) PrintExecutorInfo()

func (*Executor) PrintExecutorOptions

func (e *Executor) PrintExecutorOptions()

type ExecutorOption

type ExecutorOption interface {
	// contains filtered or unexported methods
}

执行器配置接口

func WithAction

func WithAction(a string) ExecutorOption

func WithEmergency

func WithEmergency() ExecutorOption

使用函数配置开放的配置信息

func WithTimeout

func WithTimeout(t time.Duration) ExecutorOption

type Identifier

type Identifier func(string) error

Jump to

Keyboard shortcuts

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