server

package
v0.0.0-...-66f1e0b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Types

type Config

type Config struct {
	Port  string `envconfig:"PORT" default:"8081"`
	UIDir string `envconfig:"UIDIR" default:"."`
}

type Room

type Room struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRoom

func NewRoom() *Room

type RoomListener

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

RoomListener is an entity that is interested in room events receives notifications via provided message handler

type RoomListenerMessageHandler

type RoomListenerMessageHandler func(msg interface{}) error

RoomListenerMessageHandler - a type

type Rooms

type Rooms struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type VoterID

type VoterID string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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