server

package
Version: v0.0.0-...-2ed6954 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id int64
}

func NewClient

func NewClient() *Client

type Configurator

type Configurator struct {
	// contains filtered or unexported fields
}

func NewConfigurator

func NewConfigurator(configPath string) *Configurator

func (*Configurator) Get

func (c *Configurator) Get() *config

func (*Configurator) Load

func (c *Configurator) Load() error

func (*Configurator) Save

func (c *Configurator) Save() error

type Server

type Server struct {
	Logger *utils.Logger
	Cfg    *Configurator
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) HandleMessage

func (s *Server) HandleMessage(message *connection.Message, client *websocket.Conn)

func (*Server) Handler

func (s *Server) Handler() http.HandlerFunc

func (*Server) Loop

func (s *Server) Loop(client *websocket.Conn)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL