Versions in this module Expand all Collapse all v1 v1.0.0 Nov 19, 2020 Changes in this version + var ErrExecutionimeout = errors.New("execution timeout") + var ErrRestNotOk = errors.New("rest return non 2XX response") + type DockerExec struct + func NewDockerExec(image string, timeout time.Duration) *DockerExec + func (e *DockerExec) Exec(code []byte, arg string, env interface{}) (ExecResult, error) + type ExecResult struct + Code uint32 + Output []byte + Version string + type Executor interface + Exec func(exec []byte, arg string, env interface{}) (ExecResult, error) + func NewExecutor(executor string) (exec Executor, err error) + type MultiError struct + func (e *MultiError) Error() string + type MultiExec struct + func NewMultiExec(execs []Executor, strategy string) (*MultiExec, error) + func (e *MultiExec) Exec(code []byte, arg string, env interface{}) (ExecResult, error) + type RestExec struct + func NewRestExec(url string, timeout time.Duration) *RestExec + func (e *RestExec) Exec(code []byte, arg string, env interface{}) (ExecResult, error) Other modules containing this package github.com/bandprotocol/chain/v2 github.com/bandprotocol/chain/v3