runner

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt struct {
	Logger         *zap.Logger
	AccessToken    string
	Client         *network.Client
	ExecutorConfig executor.Config
}

type Runner

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

func NewRunner

func NewRunner(opt Opt) (runner *Runner, err error)

func (*Runner) PollNewJob

func (r *Runner) PollNewJob(ctx context.Context) (job network.RequestJobResp, err error)

func (*Runner) RunJob

func (r *Runner) RunJob(ctx context.Context, job network.RequestJobResp) (err error)

Jump to

Keyboard shortcuts

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