runner

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DetailEmptyClassRef = iota
	DetailBadClassRef
)

Variables

This section is empty.

Functions

func NewDescriptorsCache

func NewDescriptorsCache() descriptor.Cache

Types

type DefaultService

type DefaultService struct {
	Cache descriptor.Cache

	Manager machine.Manager
	// contains filtered or unexported fields
}

func NewService

func NewService() *DefaultService

func (*DefaultService) CallConstructor

func (*DefaultService) CallMethod

func (*DefaultService) CreateAdapter

func (r *DefaultService) CreateAdapter(ctx context.Context) ServiceAdapter

func (*DefaultService) DeactivateObject

func (*DefaultService) ExecutionClassify

func (r *DefaultService) ExecutionClassify(executionContext execution.Context) (contract.MethodIsolation, error)

func (*DefaultService) Init

func (r *DefaultService) Init() error

type ErrorDetail

type ErrorDetail struct {
	Type int
}

type RunMode

type RunMode int
const (
	Start RunMode
	Continue
	Abort
)

type RunState

type RunState interface {
	GetResult() *execution.Update
}

type Service

type Service interface {
	CreateAdapter(ctx context.Context) ServiceAdapter
}

type ServiceAdapter

type ServiceAdapter interface {
	PrepareExecutionStart(ctx smachine.ExecutionContext, execution execution.Context, fn func(RunState)) smachine.AsyncCallRequester
	PrepareExecutionContinue(ctx smachine.ExecutionContext, state RunState, outgoingResult requestresult.OutgoingExecutionResult, fn func()) smachine.AsyncCallRequester
	PrepareExecutionAbort(ctx smachine.ExecutionContext, state RunState) smachine.AsyncCallRequester
	PrepareExecutionClassify(ctx smachine.ExecutionContext, execution execution.Context, fn func(contract.MethodIsolation, error)) smachine.AsyncCallRequester
}

type UnmanagedService

type UnmanagedService interface {
	ExecutionStart(execution execution.Context) RunState
	ExecutionContinue(run RunState, outgoingResult requestresult.OutgoingExecutionResult)
	ExecutionAbort(run RunState)
}

Directories

Path Synopsis
executor
builtin
Package builtin is implementation of builtin contracts engine
Package builtin is implementation of builtin contracts engine
common/foundation
Package foundation server implementation of smartcontract functions
Package foundation server implementation of smartcontract functions

Jump to

Keyboard shortcuts

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