Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Address of the runtime engine server. EngineAddressKey = "ODYSSEY_VM_RUNTIME_ENGINE_ADDR" // Duration before handshake timeout during bootstrap. DefaultHandshakeTimeout = 5 * time.Second // Duration of time to wait for graceful termination to complete. DefaultGracefulTimeout = 5 * time.Second )
Variables ¶
View Source
var ( ErrProtocolVersionMismatch = errors.New("RPCChainVM protocol version mismatch between OdysseyGo and Virtual Machine plugin") ErrHandshakeFailed = errors.New("handshake failed") ErrInvalidConfig = errors.New("invalid config") ErrProcessNotFound = errors.New("vm process not found") )
Functions ¶
This section is empty.
Types ¶
type Initializer ¶
type Manager ¶
func NewManager ¶
func NewManager() Manager
NewManager returns manager of VM runtimes.
TODO: If a runtime exits before the call to `manager.Stop`, it would be nice to remove it from the current set.
Click to show internal directories.
Click to hide internal directories.