Back to godoc.org

Package chat

v0.0.0-...-b30913e
Latest Go to latest

The latest major version is .

Published: Mar 24, 2017 | License: MIT | Module: github.com/Vladimir37/Backlun

Index

func RandToken

func RandToken(length int) string

RandToken generates a random @length token.

func Start

func Start(args []string)

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier