rpctypes

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments []byte

Arguments is a dedicated type for arguments, that represented as binary cbored blob

func (*Arguments) MarshalJSON

func (args *Arguments) MarshalJSON() ([]byte, error)

MarshalJSON uncbor Arguments slice recursively

type DownCallConstructorReq

type DownCallConstructorReq struct {
	Context   *call.LogicContext
	Code      reference.Global
	Name      string
	Arguments Arguments
}

DownCallConstructorReq is a set of arguments for CallConstructor RPC in the runner

type DownCallConstructorResp

type DownCallConstructorResp struct {
	Data []byte
	Ret  Arguments
}

DownCallConstructorResp is response from CallConstructor RPC in the runner

type DownCallMethodReq

type DownCallMethodReq struct {
	Context   *call.LogicContext
	Code      reference.Global
	Data      []byte
	Method    string
	Arguments Arguments
}

todo it may use foundation.Context DownCallMethodReq is a set of arguments for CallMethod RPC in the runner

type DownCallMethodResp

type DownCallMethodResp struct {
	Data []byte
	Ret  Arguments
}

DownCallMethodResp is response from CallMethod RPC in the runner

type UpBaseReq

type UpBaseReq struct {
	Mode        call.Mode
	Callee      reference.Global
	CalleeClass reference.Global
	Request     reference.Global
	ID          call.ID
}

UpBaseReq is a base type for all insgorund -> logicrunner requests

type UpCallConstructorReq

type UpCallConstructorReq struct {
	UpBaseReq
	Parent          reference.Global
	Class           reference.Global
	ConstructorName string
	ArgsSerialized  []byte
}

UpCallConstructorReq is a set of arguments for CallConstructor RPC in goplugin

type UpCallConstructorResp

type UpCallConstructorResp struct {
	Result Arguments
}

UpCallConstructorResp is a set of arguments for CallConstructor RPC in goplugin

type UpCallMethodReq

type UpCallMethodReq struct {
	UpBaseReq
	Interference isolation.InterferenceFlag
	Isolation    isolation.StateFlag
	Saga         bool
	Object       reference.Global
	Method       string
	Arguments    Arguments
	Class        reference.Global
}

UpCallMethodReq is a set of arguments for Send RPC in goplugin

type UpCallMethodResp

type UpCallMethodResp struct {
	Result Arguments
}

UpCallMethodResp is response from Send RPC in goplugin

type UpDeactivateObjectReq

type UpDeactivateObjectReq struct {
	UpBaseReq
}

UpDeactivateObjectReq is a set of arguments for DeactivateObject RPC in goplugin

type UpDeactivateObjectResp

type UpDeactivateObjectResp struct {
	Result Arguments
}

UpDeactivateObjectResp is response from DeactivateObject RPC in goplugin

type UpGetCodeReq

type UpGetCodeReq struct {
	UpBaseReq
	MType machinetype.Type
	Code  reference.Global
}

UpGetCodeReq is a set of arguments for GetCode RPC in goplugin

type UpGetCodeResp

type UpGetCodeResp struct {
	Code []byte
}

UpGetCodeResp is response from GetCode RPC in goplugin

type UpRespIface

type UpRespIface interface{}

UpRespIface interface for UpBaseReq descendant responses

Jump to

Keyboard shortcuts

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