Documentation
¶
Index ¶
- type Connection
- func (c *Connection) Close() (err error)
- func (c *Connection) ReadMessage() (msg []byte, err error)
- func (c *Connection) RelayOff(id int) (err error)
- func (c *Connection) RelayOn(id int) (err error)
- func (c *Connection) StatusRelays() (err error)
- func (c *Connection) SwitchAllOff() (err error)
- func (c *Connection) SwitchAllOn() (err error)
- func (c *Connection) WriteMessage(msg string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
func New ¶
func New(host string, port string) (c *Connection)
func (*Connection) Close ¶
func (c *Connection) Close() (err error)
func (*Connection) ReadMessage ¶
func (c *Connection) ReadMessage() (msg []byte, err error)
func (*Connection) RelayOff ¶
func (c *Connection) RelayOff(id int) (err error)
func (*Connection) RelayOn ¶
func (c *Connection) RelayOn(id int) (err error)
func (*Connection) StatusRelays ¶
func (c *Connection) StatusRelays() (err error)
func (*Connection) SwitchAllOff ¶
func (c *Connection) SwitchAllOff() (err error)
func (*Connection) SwitchAllOn ¶
func (c *Connection) SwitchAllOn() (err error)
func (*Connection) WriteMessage ¶
func (c *Connection) WriteMessage(msg string) (err error)
Click to show internal directories.
Click to hide internal directories.