Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { UUID string `redis:"uuid"` Conn *websocket.Conn `redis:"-"` Closed bool `redis:"closed"` Locked bool `redis:"locked"` Extra string `redis:"extra"` IsAdmin bool `redis:"-"` }
func NewConnection ¶
func NewConnection(ws *websocket.Conn, admin bool) *Connection
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) Receive ¶
func (c *Connection) Receive() (msg string, err error)
func (*Connection) Send ¶
func (c *Connection) Send(message []byte) (err error)
Click to show internal directories.
Click to hide internal directories.