Documentation
¶
Index ¶
- type Encoding
- type Handler
- type IReplier
- type IServerOption
- type IWSHandlerBuilder
- type IWSOption
- type Server
- type ServerOptionFunc
- type ServerOptions
- type WSMiddlewareFunc
- type WSOptionFunc
- func WithErrorEncodeFunc(fn func(w http.ResponseWriter, err error)) WSOptionFunc
- func WithReplyEncodeFunc(fn func(ws *websocket.Conn, resp interface{})) WSOptionFunc
- func WithReplyErrorEncodeFunc(fn func(ws *websocket.Conn, err error)) WSOptionFunc
- func WithRequestDecodeFunc(fn func(r *http.Request, req interface{}) error) WSOptionFunc
- func WithResponseEncodeFunc(fn func(w http.ResponseWriter, resp interface{})) WSOptionFunc
- func WithWSMiddlewareFunc(fns ...WSMiddlewareFunc) WSOptionFunc
- type WSOptions
- type WSPreHandleFunc
- type WebSocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IServerOption ¶
type IServerOption interface {
// contains filtered or unexported methods
}
func WithHandlerBuilders ¶
func WithHandlerBuilders(handlerBuilders ...IWSHandlerBuilder) IServerOption
type IWSHandlerBuilder ¶
type ServerOptionFunc ¶
type ServerOptionFunc func(*ServerOptions)
func WithServerOptionErrorEncodeFunc ¶
func WithServerOptionErrorEncodeFunc(fn func(w http.ResponseWriter, err error)) ServerOptionFunc
type ServerOptions ¶
type ServerOptions struct {
// contains filtered or unexported fields
}
type WSMiddlewareFunc ¶
type WSMiddlewareFunc func(WSPreHandleFunc) WSPreHandleFunc
type WSOptionFunc ¶
type WSOptionFunc func(*WSOptions)
func WithErrorEncodeFunc ¶
func WithErrorEncodeFunc(fn func(w http.ResponseWriter, err error)) WSOptionFunc
func WithReplyEncodeFunc ¶
func WithReplyEncodeFunc(fn func(ws *websocket.Conn, resp interface{})) WSOptionFunc
func WithReplyErrorEncodeFunc ¶
func WithReplyErrorEncodeFunc(fn func(ws *websocket.Conn, err error)) WSOptionFunc
func WithRequestDecodeFunc ¶
func WithRequestDecodeFunc(fn func(r *http.Request, req interface{}) error) WSOptionFunc
func WithResponseEncodeFunc ¶
func WithResponseEncodeFunc(fn func(w http.ResponseWriter, resp interface{})) WSOptionFunc
func WithWSMiddlewareFunc ¶
func WithWSMiddlewareFunc(fns ...WSMiddlewareFunc) WSOptionFunc
Click to show internal directories.
Click to hide internal directories.