Documentation ¶
Index ¶
- Constants
- func NewDescriptorsCache() descriptor.Cache
- type DefaultService
- func (r *DefaultService) CallConstructor(in rpctypes.UpCallConstructorReq, out *rpctypes.UpCallConstructorResp) error
- func (r *DefaultService) CallMethod(in rpctypes.UpCallMethodReq, out *rpctypes.UpCallMethodResp) error
- func (r *DefaultService) CreateAdapter(ctx context.Context) ServiceAdapter
- func (r *DefaultService) DeactivateObject(in rpctypes.UpDeactivateObjectReq, out *rpctypes.UpDeactivateObjectResp) error
- func (r *DefaultService) ExecutionClassify(executionContext execution.Context) (contract.MethodIsolation, error)
- func (r *DefaultService) Init() error
- type ErrorDetail
- type RunMode
- type RunState
- type Service
- type ServiceAdapter
- type UnmanagedService
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 (r *DefaultService) CallConstructor(in rpctypes.UpCallConstructorReq, out *rpctypes.UpCallConstructorResp) error
func (*DefaultService) CallMethod ¶
func (r *DefaultService) CallMethod(in rpctypes.UpCallMethodReq, out *rpctypes.UpCallMethodResp) error
func (*DefaultService) CreateAdapter ¶
func (r *DefaultService) CreateAdapter(ctx context.Context) ServiceAdapter
func (*DefaultService) DeactivateObject ¶
func (r *DefaultService) DeactivateObject(in rpctypes.UpDeactivateObjectReq, out *rpctypes.UpDeactivateObjectResp) error
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 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) }
Source Files ¶
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 |
Click to show internal directories.
Click to hide internal directories.