http

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package http - Contains HTTP and websocket handlers for exposing curators to clients.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidDocument = errors.New("invalid document structure")
	ErrInvalidUserID   = errors.New("invalid user ID")
)

Common errors for the http package.

Functions

func WebsocketHandler

func WebsocketHandler(
	finder curator.Type,
	timeout time.Duration,
	logger log.Modular,
	stats metrics.Aggregator,
) func(ws *websocket.Conn)

WebsocketHandler - Returns a websocket handler that routes new websockets to a curator. Use this with an HTTP server with the "golang.org/x/net/websocket" package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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