Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocation ¶ added in v0.0.13
func GetLocation() string
Types ¶
type AbstractLogMiddleware ¶ added in v0.0.13
type AbstractLogMiddleware struct {
// contains filtered or unexported fields
}
type AsyncTaskLogMiddleware ¶ added in v0.0.13
type AsyncTaskLogMiddleware struct { AbstractLogMiddleware // contains filtered or unexported fields }
type Config ¶ added in v0.0.10
type DoNothingMiddleware ¶ added in v0.0.9
type DoNothingMiddleware struct{}
type LogMiddleware ¶ added in v0.0.9
type LogMiddleware struct {
AbstractLogMiddleware
}
type Middleware ¶
func CreateAsyncMiddleware ¶ added in v0.0.13
func CreateAsyncMiddleware(config *Config) Middleware
func CreateMiddleware ¶
func CreateMiddleware(config *Config) Middleware
type ResponseRecorder ¶
type ResponseRecorder struct { Body *bytes.Buffer StatusCode int // contains filtered or unexported fields }
func NewResponseRecorder ¶
func NewResponseRecorder(writer http.ResponseWriter) *ResponseRecorder
func (*ResponseRecorder) Header ¶
func (rw *ResponseRecorder) Header() http.Header
func (*ResponseRecorder) WriteHeader ¶
func (rw *ResponseRecorder) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.