chat

package
v0.0.0-...-b30913e Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandToken

func RandToken(length int) string

RandToken generates a random @length token.

func Start

func Start(args []string)

Types

type Client

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

Client is an middleman between the websocket connection and the hub

type Config

type Config struct {
	Port string
	Host string
}

func (*Config) SetDefault

func (config *Config) SetDefault()

type Hub

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

hub maintains the set of active connections and broadcasts messages to the connections.

type Server

type Server struct{}

Server structure

func (*Server) NewEngine

func (server *Server) NewEngine(port string)

Jump to

Keyboard shortcuts

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