Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeConn ¶
func ServeConn(conn net.Conn, c *ControlRPC)
ServeConn takes a net connection, registers the Control module and serves RPC
Types ¶
type ControlClient ¶
ControlClient is our custom rpc client for Control connections
func NewClient ¶
func NewClient(conn net.Conn) *ControlClient
NewControlClient return a new ControlClient based off of the provided connection
func (*ControlClient) Register ¶
func (c *ControlClient) Register(agent string) (*RegisterReply, error)
Register is a stub to the Control.Register RPC method
type ControlRPC ¶
type ControlRPC struct {
// contains filtered or unexported fields
}
func NewRPC ¶
func NewRPC(dir Director) *ControlRPC
func (*ControlRPC) Register ¶
func (c *ControlRPC) Register(agent *string, reply *RegisterReply) error
type RegisterReply ¶
Click to show internal directories.
Click to hide internal directories.