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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.