Documentation ¶
Index ¶
- func NewWebsocketRequest(msg *WebsocketMessage, remoteIp string) (r *websocketRequest, err errors.CodeError)
- type Address
- type Contact
- type Document
- type DocumentHandlerOptions
- type FastHttp
- type Handler
- type HandlerOptions
- type Handlers
- type HealthHandlerOptions
- type Http
- type HttpClient
- type HttpOptions
- type License
- type PprofArgument
- type PprofHandlerOptions
- type WebsocketEndpoint
- type WebsocketMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebsocketRequest ¶ added in v0.12.6
func NewWebsocketRequest(msg *WebsocketMessage, remoteIp string) (r *websocketRequest, err errors.CodeError)
Types ¶
type DocumentHandlerOptions ¶
type DocumentHandlerOptions struct {
Version string
}
type FastHttp ¶
type FastHttp struct {
// contains filtered or unexported fields
}
func (*FastHttp) Build ¶
func (srv *FastHttp) Build(options HttpOptions) (err error)
func (*FastHttp) ListenAndServe ¶
type Handler ¶
type Handler interface { Name() (name string) Build(options *HandlerOptions) (err error) Handle(writer http.ResponseWriter, request *http.Request) (ok bool) Close() }
func NewCorsHandler ¶
func NewCorsHandler() (h Handler)
func NewDocumentHandler ¶
func NewDocumentHandler(options DocumentHandlerOptions) (h Handler)
func NewHealthHandler ¶
func NewHealthHandler(options HealthHandlerOptions) (h Handler)
func NewServiceHandler ¶
func NewServiceHandler() (h Handler)
func NewWebsocketHandler ¶ added in v0.12.6
func NewWebsocketHandler() (h Handler)
func PprofHandler ¶ added in v0.12.2
func PprofHandler() (h Handler)
type HandlerOptions ¶ added in v0.13.3
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func NewHandlers(options *HandlerOptions) (handlers *Handlers)
type HealthHandlerOptions ¶
type Http ¶
type Http interface { Build(options HttpOptions) (err error) ListenAndServe() (err error) Close() (err error) }
type HttpClient ¶
type HttpOptions ¶
type PprofArgument ¶ added in v0.12.6
type PprofHandlerOptions ¶
type PprofHandlerOptions struct {
Password string
}
type WebsocketEndpoint ¶ added in v0.12.6
type WebsocketMessage ¶ added in v0.12.6
type WebsocketMessage struct { Header http.Header `json:"header"` Body json.RawMessage `json:"body"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.