Documentation ¶
Index ¶
- Variables
- func NewCors(handler http.Handler) http.Handler
- func NewLogger(handler http.Handler) http.Handler
- func NewTokenOverwrite(config configuration.Config, handler http.Handler) http.Handler
- func NewVersionHeaderMiddleware(handler http.Handler) http.Handler
- type CorsMiddleware
- type LoggerMiddleWare
- type TokenOverwriteMiddleWare
- type VersionHeaderMiddleware
Constants ¶
This section is empty.
Variables ¶
View Source
var VersionTxtFile = "version.txt"
Functions ¶
func NewTokenOverwrite ¶
Types ¶
type CorsMiddleware ¶
type CorsMiddleware struct {
// contains filtered or unexported fields
}
func (*CorsMiddleware) ServeHTTP ¶
func (this *CorsMiddleware) ServeHTTP(res http.ResponseWriter, req *http.Request)
type LoggerMiddleWare ¶
type LoggerMiddleWare struct {
// contains filtered or unexported fields
}
func (*LoggerMiddleWare) ServeHTTP ¶
func (this *LoggerMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)
type TokenOverwriteMiddleWare ¶
type TokenOverwriteMiddleWare struct {
// contains filtered or unexported fields
}
func (*TokenOverwriteMiddleWare) ServeHTTP ¶
func (this *TokenOverwriteMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)
type VersionHeaderMiddleware ¶
type VersionHeaderMiddleware struct {
// contains filtered or unexported fields
}
func (*VersionHeaderMiddleware) ServeHTTP ¶
func (this *VersionHeaderMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.