Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALogger ¶
type ALogger interface { Println(v ...interface{}) Printf(format string, v ...interface{}) }
ALogger interface
type Idempotent ¶
type Idempotent struct{}
func (*Idempotent) ServeHTTP ¶
func (idem *Idempotent) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
func (*Idempotent) ValidateRequestId ¶
func (idem *Idempotent) ValidateRequestId(reqid string) (bool, error)
func (*Idempotent) ValidateRequestIdFromHeaders ¶
func (idem *Idempotent) ValidateRequestIdFromHeaders(r *http.Request) (bool, error)
type Logger ¶
type Logger struct { // ALogger implements just enough log.Logger interface to be compatible with other implementations ALogger }
Logger is a middleware handler that logs the request as it goes in and the response as it goes out.
func (*Logger) ServeHTTP ¶
func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.