Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
Connection houses the current connection's details
func (*Connection) Call ¶
func (c *Connection) Call(path, method string, message map[string]interface{}) int
Call a method on the target device
func (*Connection) Connect ¶
func (c *Connection) Connect(addr string)
Connect to the specified host
func (*Connection) Recv ¶
func (c *Connection) Recv() Response
Recv reads a json response into a response struct
func (*Connection) Send ¶
func (c *Connection) Send(request interface{}) int
Send the specified interface{} as json
Click to show internal directories.
Click to hide internal directories.