server

package
v0.0.0-...-14a1528 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrRoomExists

type ErrRoomExists struct{}

func (*ErrRoomExists) Error

func (e *ErrRoomExists) Error() string

type ErrRoomNotFound

type ErrRoomNotFound struct{}

func (*ErrRoomNotFound) Error

func (e *ErrRoomNotFound) Error() string

type Server

type Server struct {
	*http.Server // composed of a http.Server instance
	// contains filtered or unexported fields
}

func New

func New(address string) (*Server, error)

func (*Server) GetRoom

func (s *Server) GetRoom(id string) (*room.Room, error)

func (*Server) HTTPPostNewRoomHandler

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

func (*Server) RegisterRoom

func (s *Server) RegisterRoom(r *room.Room) error

func (*Server) SocketIOError

func (s *Server) SocketIOError(so socketio.Socket, err error)

func (*Server) SocketIOHandler

func (s *Server) SocketIOHandler() (*socketio.Server, error)

Jump to

Keyboard shortcuts

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