Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicSecurityHeaderMiddleware = NewBasicSecurityHeadersMiddleware()
Functions ¶
This section is empty.
Types ¶
type CacheControlWrapperMiddleware ¶
type CacheControlWrapperMiddleware struct {
// contains filtered or unexported fields
}
func (*CacheControlWrapperMiddleware) Intercept ¶
func (m *CacheControlWrapperMiddleware) Intercept(h http.Handler) http.Handler
func (*CacheControlWrapperMiddleware) Name ¶
func (m *CacheControlWrapperMiddleware) Name() string
type Middleware ¶
func NewBasicSecurityHeadersMiddleware ¶
func NewBasicSecurityHeadersMiddleware() Middleware
func NewCacheControlWrapperMiddleware ¶
func NewCacheControlWrapperMiddleware(maxAge time.Duration) Middleware
func NewSamplePrometheusMetricsMiddleware ¶
func NewSamplePrometheusMetricsMiddleware(maxAge time.Duration) Middleware
type MiddlewareManager ¶
type MiddlewareManager interface { SetNewMiddleware(route *mux.Route, middleware []Middleware) error RemoveMiddleware(route *mux.Route) error }
func NewMiddlewareManager ¶
func NewMiddlewareManager(endpointHandlerMapPtr *map[string]http.HandlerFunc) MiddlewareManager
NewMiddlewareManager sets up a new middleware manager singleton instance
type SamplePrometheusMetricsMiddleware ¶
type SamplePrometheusMetricsMiddleware struct {
// contains filtered or unexported fields
}
func (*SamplePrometheusMetricsMiddleware) Intercept ¶
func (m *SamplePrometheusMetricsMiddleware) Intercept(h http.Handler) http.Handler
func (*SamplePrometheusMetricsMiddleware) Name ¶
func (m *SamplePrometheusMetricsMiddleware) Name() string
Click to show internal directories.
Click to hide internal directories.