rpcout

package
v0.0.0-...-510905f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRpciFormat = errors.New("invalid format for RPCI command result")

ErrRpciFormat represents an invalid result format

Functions

func SendOne

func SendOne(format string, a ...interface{}) (reply []byte, ok bool, err error)

SendOne is a command-oriented wrapper for SendOneRaw

func SendOneRaw

func SendOneRaw(request []byte) (reply []byte, ok bool, err error)

SendOneRaw uses a throw-away RPCOut to send a request

Types

type RPCOut

type RPCOut struct {
	// contains filtered or unexported fields
}

RPCOut is an ougoing connection from the VM to the hypervisor

func (*RPCOut) Send

func (out *RPCOut) Send(request []byte) (reply []byte, ok bool, err error)

Send emits a request and receives a response

func (*RPCOut) Start

func (out *RPCOut) Start() error

Start opens the connection

func (*RPCOut) Stop

func (out *RPCOut) Stop() error

Stop closes the connection

Jump to

Keyboard shortcuts

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