Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { Tracer middleware.Tracer // contains filtered or unexported fields }
func New ¶
func New(opts ...Option) *Middleware
func (*Middleware) Middleware ¶
func (m *Middleware) Middleware() func(http.Handler) http.Handler
type Option ¶
type Option func(*Middleware)
func WithIncludeSubDomains ¶
func WithIncludeSubDomains() Option
func WithMaxAge ¶
func WithPreload ¶
func WithPreload() Option
Click to show internal directories.
Click to hide internal directories.