vm

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Copyright 2017-2018 OneLedger

Copyright 2017-2018 OneLedger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRun

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

func InitializeClient

func InitializeClient()

Initialize the vm/daemon/etc.

func Run

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

Types

type Container

type Container int

TODO Still used?

func (*Container) Echo

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

Echo as defined by RPC

func (*Container) Exec

func (c *Container) Exec(request *action.OLVMRequest, result *action.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 *action.OLVMRequest) (*action.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() *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