vm

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright 2017-2018 OneLedger

Copyright 2017-2018 OneLedger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(request *data.OLVMRequest) (result *data.OLVMResult, err error)

func AutoRun

func AutoRun(request *data.OLVMRequest) (result *data.OLVMResult, err error)

func InitializeClient

func InitializeClient(protocol, address string)

Initialize the vm/daemon/etc.

func Run

func Run(request *data.OLVMRequest) (*data.OLVMResult, error)

Types

type Container

type Container int

TODO Still used?

func (*Container) Analyze

func (c *Container) Analyze(request *data.OLVMRequest, result *data.OLVMResult) error

Exec as defined by RPC

func (*Container) Echo

func (c *Container) Echo(request *data.OLVMRequest, result *data.OLVMResult) error

Echo as defined by RPC

func (*Container) Exec

func (c *Container) Exec(request *data.OLVMRequest, result *data.OLVMResult) error

Exec as defined by RPC

type OLVMClient

type OLVMClient struct {
	Protocol    string
	ServicePath string // TODO: Should be called Address
}

Static information about the client parameters

func NewClient

func NewClient(protocol string, address string) *OLVMClient

func (OLVMClient) Run

func (c OLVMClient) Run(request *data.OLVMRequest) (*data.OLVMResult, error)

Run a smart contract

func (OLVMClient) RunAnalyze

func (c OLVMClient) RunAnalyze(request *data.OLVMRequest) (*data.OLVMResult, error)

Run a smart contract

type OLVMService

type OLVMService struct {
	Protocol string
	//Port     int // TODO: Should be a full address (even if we only need port)
	Address string
}

Static information about the service parameters

func NewOLVMService

func NewOLVMService(protocol, address string) *OLVMService

TODO: Make sure call is not before viper args are handled.

func (OLVMService) StartService

func (ol OLVMService) StartService()

Start up the service

Jump to

Keyboard shortcuts

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