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.
Click to show internal directories.
Click to hide internal directories.