Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAgent ¶
func RegisterAgent() bool
Types ¶
type Connection ¶
type Connection struct { Out chan []byte In chan []byte // reader/writer notifies main of error through ErrorChannel ErrorChannel chan struct{} // contains filtered or unexported fields }
Connection encapsulates websocket conn and related stuff
func NewConnection ¶
func NewConnection(ctx context.Context, ErrorChannel chan struct{}) *Connection
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) Run ¶
func (c *Connection) Run()
func (*Connection) Worker ¶
func (c *Connection) Worker()
Worker coroutine, it recives packet, decodes it and runs functions commandbuff bashed on command type
Click to show internal directories.
Click to hide internal directories.