Documentation ¶
Index ¶
- type Address
- type Contact
- type CorsHandlerOptions
- type Document
- type DocumentHandlerOptions
- type FastHttp
- type Handler
- type Handlers
- type HealthHandlerOptions
- type Http
- type HttpClient
- type HttpOptions
- type InterceptorHandler
- type InterceptorHandlerOptions
- type License
- type PprofHandlerOptions
- type ServiceHandlerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsHandlerOptions ¶
type DocumentHandlerOptions ¶
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 { Handle(writer http.ResponseWriter, request *http.Request) (ok bool) Close() }
func NewCorsHandler ¶
func NewCorsHandler(options CorsHandlerOptions) (h Handler)
func NewDocumentHandler ¶
func NewDocumentHandler(options DocumentHandlerOptions) (h Handler)
func NewHealthHandler ¶
func NewHealthHandler(options HealthHandlerOptions) (h Handler)
func NewServiceHandler ¶
func NewServiceHandler(options ServiceHandlerOptions) (h Handler)
func PprofHandler ¶ added in v0.12.2
func PprofHandler() (h Handler)
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func NewHandlers() (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 InterceptorHandler ¶
type InterceptorHandler interface { Handler Build(options InterceptorHandlerOptions) (err error) Name() (name string) }
type InterceptorHandlerOptions ¶
type InterceptorHandlerOptions struct { Log logs.Logger Config configures.Config }
type PprofHandlerOptions ¶
type PprofHandlerOptions struct {
Password string
}
Click to show internal directories.
Click to hide internal directories.