command

package
v0.0.0-...-8d6e374 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeConn

func ServeConn(conn net.Conn, c *CommandRPC)

Types

type CommandClient

type CommandClient struct {
	*rpc.Client
}

CommandClient is our custom rpc client for Command connections

func NewClient

func NewClient(conn net.Conn) *CommandClient

NewCommandClient takes a net connection and returns a new CommandClient

func (*CommandClient) Dispatch

func (c *CommandClient) Dispatch(request *DispatchRequest, reply modules.Args) error

Dispatch is a stub to the Command.Dispatch RPC method

type CommandRPC

type CommandRPC struct {
}

func NewRPC

func NewRPC() *CommandRPC

func (*CommandRPC) Dispatch

func (c *CommandRPC) Dispatch(request *DispatchRequest, reply *DispatchReply) error

Dispatch dispatches a command to a module

type DispatchReply

type DispatchReply struct {
	Args modules.Args
}

type DispatchRequest

type DispatchRequest struct {
	Module   string
	Function string
	Args     modules.Args
}

Jump to

Keyboard shortcuts

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