server

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ange

type Ange struct {
	log.Logger
	// contains filtered or unexported fields
}

func New

func New(staticDir, host string, unsafeOrigin bool) *Ange

func (*Ange) Run

func (ange *Ange) Run(logger log.Logger)

func (*Ange) ServeWs

func (ange *Ange) ServeWs(w http.ResponseWriter, r *http.Request)

ServeWs handles websocket requests from the peer.

type Client

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

Client is a middleman between the websocket connection and the hub.

Directories

Path Synopsis
Package msg provides marshalling and unmarshalling functions for messages over websockets.
Package msg provides marshalling and unmarshalling functions for messages over websockets.

Jump to

Keyboard shortcuts

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