Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WebSocketAcceptOptions = websocket.AcceptOptions{}
WebSocketAcceptOptions are the default options applied to WebSocket. You may want to set InsecureSkipVerify if you are being lazy/don't care about hosts.
Functions ¶
func Http ¶
func Http(fn HttpFunc) http.HandlerFunc
Http returns a http.HandlerFunc that wraps a HttpFunc capable of convenient return types.
func WebSocket ¶
func WebSocket(fn WebSocketFunc) http.HandlerFunc
WebSocket returns a http.HandlerFunc that wraps a websocket setup/teardown.
Types ¶
Click to show internal directories.
Click to hide internal directories.