Versions in this module Expand all Collapse all v1 v1.5.0 Dec 9, 2022 v1.0.0 Nov 22, 2022 Changes in this version + const ExitCode_SIGINT + const ExitCode_SIGTERM + const ExitCode_UNKNOWN + const LEVEL_DEBUG + const LEVEL_ERROR + const LEVEL_INFO + const LEVEL_WARN + const MODULE_CONTRACT + const MODULE_SANDBOX + const SHOWLINE + func CustomLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder) + func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func EnterNextStep(msg *protogo.DockerVMMessage, stepType protogo.StepType, log string) + func GetAllStackMsg() string + func GetClientStream(conn *grpc.ClientConn) (protogo.DockerVMRpc_DockerVMCommunicateClient, error) + func PrintTxSteps(msg *protogo.DockerVMMessage) string + func PrintTxStepsWithTime(msg *protogo.DockerVMMessage, untilDuration time.Duration) (string, bool) + func Start(contract sdk.Contract) error + type Conf struct + ContractEngineClient *ContractEngineClientConf + ContractName string + LogLevel string + ProcessName string + RuntimeClient *RuntimeClientConf + type ContractEngineClient struct + func (c *ContractEngineClient) PutFinishMsg(msg *protogo.DockerVMMessage) + func (c *ContractEngineClient) RegisterTxRequestPutFunc(txRequestPutFunc func(msg *protogo.DockerVMMessage, ...)) + func (c *ContractEngineClient) Start() error + type ContractEngineClientConf struct + EngineUDSSockPath string + MaxRecvMsgSize int + MaxSendMsgSize int + type PRCProtocolType int + const TCP + const UDS + type RuntimeClient struct + func (r *RuntimeClient) PutMsg(msg *protogo.DockerVMMessage) + func (r *RuntimeClient) PutMsgWithNotify(msg *protogo.DockerVMMessage, ...) + func (r *RuntimeClient) RegisterResponseNotifier(syscallResponseNotifyFunc func(msg *protogo.DockerVMMessage)) + func (r *RuntimeClient) Start() error + type RuntimeClientConf struct + MaxRecvMsgSize int + MaxSendMsgSize int + RuntimeHost string + RuntimePort string + RuntimeRPCProtocolType PRCProtocolType + RuntimeUDSSockPath string + type SysCallDuration struct + OpType protogo.DockerVMType + StartTime int64 + TotalDuration int64 + func (s *SysCallDuration) ToString() string + type TxDuration struct + CrossCallCnt int32 + CrossCallDuration int64 + EndTime int64 + StartTime int64 + SysCallCnt int32 + SysCallDuration int64 + SysCallList []*SysCallDuration + TotalDuration int64 + Tx *protogo.DockerVMMessage + func NewTxDuration(tx *protogo.DockerVMMessage, startTime int64) *TxDuration + func (t *TxDuration) EndSysCall(msg *protogo.DockerVMMessage) error + func (t *TxDuration) GetLatestSysCall() (*SysCallDuration, error) + func (t *TxDuration) PrintSysCallList() string + func (t *TxDuration) Reset(tx *protogo.DockerVMMessage, startTime int64) + func (t *TxDuration) StartSysCall(msg *protogo.DockerVMMessage) + func (t *TxDuration) ToString() string + type TxHandler struct + func (h *TxHandler) PutMsg(msg *protogo.DockerVMMessage) + func (h *TxHandler) PutMsgWithNotify(msg *protogo.DockerVMMessage, ...) + func (h *TxHandler) RegisterSyscallMsgSendFunc(f func(msg *protogo.DockerVMMessage, ...)) + func (h *TxHandler) RegisterTxFinishMsgNotifyFunc(txFinishMsgNotifyFunc func(msg *protogo.DockerVMMessage)) + func (h *TxHandler) Start() error + type TxStatus string + const AfterExecuted + const AfterSendResponse + const BeforeExecute + const BeforeListening + const BeforeReceive + const Executing + const Finished + const WaitingSysCallResponse