Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 v3.0.0 Dec 23, 2022 Changes in this version + func NewDockerManager(chainId string, vmConfig map[string]interface{}) protocol.VmInstancesManager + type BlockElapsedTime struct + func (b *BlockElapsedTime) AddTxElapsedTime(t *TxElapsedTime) + func (b *BlockElapsedTime) ToString() string + type ClientManager interface + DeleteReceiveChan func(chainId, txId string) bool + GetUniqueTxKey func(txId string) string + GetVMConfig func() *config.DockerVMConfig + HasActiveConnections func() bool + NeedSendContractByteCode func() bool + PutSysCallResponse func(sysCallResp *protogo.CDMMessage) + PutTxRequest func(txRequest *protogo.CDMMessage) + RegisterReceiveChan func(chainId, txId string, receiveCh chan *protogo.CDMMessage) error + type DockerManager struct + RequestMgr *RequestMgr + func (m *DockerManager) AfterSchedule(blockFingerprint string, blockHeight uint64) + func (m *DockerManager) BeforeSchedule(blockFingerprint string, blockHeight uint64) + func (m *DockerManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string, ...) (protocol.RuntimeInstance, error) + func (m *DockerManager) StartVM() error + func (m *DockerManager) StopVM() error + type RequestMgr struct + RequestMap map[string]*BlockElapsedTime + func NewRequestMgr() *RequestMgr + func (r *RequestMgr) AddRequest(requestId string) + func (r *RequestMgr) AddTx(requestId string, txTime *TxElapsedTime) + func (r *RequestMgr) PrintBlockElapsedTime(requestId string) string + func (r *RequestMgr) RemoveRequest(requestId string) + type RuntimeInstance struct + ChainId string + ClientManager ClientManager + DockerManager *DockerManager + Log protocol.Logger + func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, method string, byteCode []byte, ...) (contractResult *commonPb.ContractResult, ...) + type SysCallElapsedTime struct + OpType protogo.CDMType + StartTime int64 + StorageTimeInSysCall int64 + TotalTime int64 + func NewSysCallElapsedTime(opType protogo.CDMType, startTime int64, totalTime int64, storageTime int64) *SysCallElapsedTime + func (s *SysCallElapsedTime) ToString() string + type TxElapsedTime struct + ContingentSysCallCnt int32 + ContingentSysCallTime int64 + CrossCallCnt int32 + CrossCallTime int64 + EndTime int64 + StartTime int64 + StorageTimeInSysCall int64 + SysCallCnt int32 + SysCallList []*SysCallElapsedTime + SysCallTime int64 + TotalTime int64 + TxId string + func NewTxElapsedTime(txId string, startTime int64) *TxElapsedTime + func (e *TxElapsedTime) Add(t *TxElapsedTime) + func (e *TxElapsedTime) AddContingentSysCall(spend int64) + func (e *TxElapsedTime) AddSysCallElapsedTime(sysCallElapsedTime *SysCallElapsedTime) + func (e *TxElapsedTime) AddToSysCallList(sysCallElapsedTime *SysCallElapsedTime) + func (e *TxElapsedTime) PrintSysCallList() string + func (e *TxElapsedTime) ToString() string Other modules containing this package chainmaker.org/chainmaker/vm-docker-go/v2