Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChanHandler ¶
ChanHandler represents duplex communication with two channels.
type ErrHandler ¶
type ErrHandler func(w http.ResponseWriter, r *http.Request, err error)
ErrHandler is intended to repsond to a request when an error has occured.
func (ErrHandler) Check ¶
func (h ErrHandler) Check(w http.ResponseWriter, r *http.Request, err error) bool
Check only invokes the ErrHandler if err is not nil. Returns a bool indicating if ErrHandler was invoked.
type MessageReaderWriter ¶
type RequestDecoder ¶
RequestDecoder encapsulates decoding a request to a value
type Socket ¶
type Socket struct { MessageReaderWriter // contains filtered or unexported fields }
Socket is intended to be a websocket
func NewSocket ¶
func NewSocket(socket MessageReaderWriter) *Socket
NewSocket creates a Socket. It is intended to be used with a websocket.
type SocketHandler ¶
SocketHandler is similar to http.HandlerFunc, but for handling websockets
Directories ¶
Path | Synopsis |
---|---|
Package midware provides a way to convert a MidwareFunc to an http.HandlerFunc.
|
Package midware provides a way to convert a MidwareFunc to an http.HandlerFunc. |
Click to show internal directories.
Click to hide internal directories.