Documentation ¶
Overview ¶
Package http provides adapter implementations which run on top of http.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
Components makes instantiation easier to read
type Healthz ¶
type Healthz struct{}
Healthz defines a handler to ping adapters via a GET request.
It listens to requests of the form: [GET] /healthz
type Interface ¶
type Interface interface {
Bind(Handler)
}
Interface defines the public interfaces used by the adapter
type StatusPage ¶
type StatusPage struct{}
StatusPage shows statistic on GET request
It listens to requests of the form: [GET] /status
No body or query param are expected
func (StatusPage) Handle ¶
func (p StatusPage) Handle(w http.ResponseWriter, req *http.Request) error
Handle implements the http.Handler interface
Click to show internal directories.
Click to hide internal directories.