rpc

package
v6.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 9 Imported by: 129

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPluginCommands

func GetAllPluginCommands() ([]plugin.Command, error)

func RunCommandExists

func RunCommandExists(methodName string, location string) (bool, error)

func RunListCmd

func RunListCmd(pluginName, location, cliServicePort string) ([]plugin.Command, error)

func RunMethodIfExists

func RunMethodIfExists(cmdName string) (bool, error)

Types

type CliRpcCmd

type CliRpcCmd struct {
	ReturnData interface{}
}

func (*CliRpcCmd) SetName

func (cmd *CliRpcCmd) SetName(pluginName string, retVal *bool) error

type CliRpcService

type CliRpcService struct {
	Pinged bool
	RpcCmd *CliRpcCmd
	// contains filtered or unexported fields
}

func NewRpcService

func NewRpcService() (*CliRpcService, error)

func (*CliRpcService) Port

func (cli *CliRpcService) Port() string

func (*CliRpcService) Start

func (cli *CliRpcService) Start() error

func (*CliRpcService) Stop

func (cli *CliRpcService) Stop()

Jump to

Keyboard shortcuts

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