server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = fmt.Errorf("Error: Not Implemented\n")
)
View Source
var (

	// Router ...
	Router = pat.New()
)

Functions

func GenerateHandlers

func GenerateHandlers() map[string]mist.HandleFunc

GenerateHandlers ...

func Register

func Register(name string, auth handleFunc)

Register registers a new mist server

func Start

func Start(uris []string, token string) error

Start attempts to individually start mist servers from a list of provided listeners; the listeners provided is a comma delimited list of uri strings (scheme:[//[user:pass@]host[:port]][/]path[?query][#fragment])

func StartHTTP

func StartHTTP(uri string, errChan chan<- error)

StartHTTP starts a mist server listening over HTTP

func StartHTTPS

func StartHTTPS(uri string, errChan chan<- error)

StartHTTPS starts a mist server listening over HTTPS

func StartTCP

func StartTCP(uri string, errChan chan<- error)

StartTCP starts a tcp server listening on the specified address (default 127.0.0.1:1445) and then continually reads from the server handling any incoming connections

func StartWS

func StartWS(uri string, errChan chan<- error)

StartWS starts a mist server listening over a websocket

func StartWSS

func StartWSS(uri string, errChan chan<- error)

StartWSS starts a mist server listening over a secure websocket

Types

This section is empty.

Jump to

Keyboard shortcuts

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