server

package
v0.0.0-...-299b926 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Message is websocket message encoder
	Message = websocket.Message
	// ActiveClients is a map of websocket clients
	ActiveClients = make(map[Client]int) // map containing clients
)

Functions

func AttachHandlers

func AttachHandlers()

AttachHandlers attaches all http handler

func ListenHTTP

func ListenHTTP(hostname string, port int, handler http.Handler)

ListenHTTP starts http server at given hostname and port

Types

type Client

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

type File

type File struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

File contains info about the type of file being uploaded

type Files

type Files []File

Files is a list of File

Jump to

Keyboard shortcuts

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