executor

package
v0.0.0-...-cbb836e Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutableConfig

type ExecutableConfig struct {
	Name             string `json:"name"`
	Version          string `json:"version"`
	Author           string `json:"author"`
	BinaryDigest     string `json:"binaryDigest"`
	SourceCodeFile   string `json:"sourceCodeFile"`
	SourceCodeDigest string `json:"sourceCodeDigest"`
	Abi              struct {
		Entry     string `json:"entry"`
		Signature string `json:"signature"`
	} `json:"abi"`
	Executable struct {
		WasmMainFile  string `json:"wasmMainFile"`
		WasmLibraries string `json:"wasmLibraries"`
	} `json:"executable"`
	Data struct {
		InputDir    string   `json:"inputDir"`
		InputFiles  []string `json:"inputFiles"`
		OutputDir   string   `json:"outputDir"`
		LogDir      string   `json:"logDir"`
		OutputFiles []string `json:"outputFiles"`
	} `json:"data"`
	Capabilities struct {
		FileOps struct {
			NativeFile struct {
				Read   bool `json:"read"`
				Write  bool `json:"write"`
				Create bool `json:"create"`
			} `json:"nativeFile"`
		} `json:"fileOps"`
	} `json:"capabilities"`
}

type ExecutionReport

type ExecutionReport struct {
	GasUsed   uint64 `json:"gasUsed"`
	ResultMsg string `json:"resultMsg"`
}

type Executor

type Executor struct {
	DB     *gorm.DB
	Client sdkClient.Client
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(db *gorm.DB, client sdkClient.Client) *Executor

NewExecutor returns the executor instance

func (*Executor) Start

func (ex *Executor) Start()

Start starts the routines of executor

type Receipt

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

Jump to

Keyboard shortcuts

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