connection

package
v0.0.0-...-9ba4946 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2015 License: MIT Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL