Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶ added in v0.3.0
type Metrics interface { IncrementCounter(ctx context.Context, name string, labels ...string) DeltaUpDownCounter(ctx context.Context, name string, value float64, labels ...string) RecordHistogram(ctx context.Context, name string, value float64, labels ...string) SetGauge(name string, value float64) }
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request is an abstraction over the underlying http.Request. This abstraction is useful because it allows us to create applications without being aware of the transport. cmd.Request is another such abstraction.
func NewRequest ¶
type Responder ¶
type Responder struct {
// contains filtered or unexported fields
}
func NewResponder ¶
func NewResponder(w http.ResponseWriter) *Responder
func (Responder) HTTPStatusFromError ¶
Click to show internal directories.
Click to hide internal directories.