Versions in this module Expand all Collapse all v0 v0.24.0 Jan 13, 2017 v0.23.2 Jan 12, 2017 Changes in this version + func ContentSecurityPolicy(directives CSPDirectives) gear.Middleware + func DNSPrefetchControl(allow bool) gear.Middleware + func Default() gear.Middleware + func FrameGuard(action FrameGuardAction, domains ...string) gear.Middleware + func HidePoweredBy() gear.Middleware + func IENoOpen() gear.Middleware + func NoSniff() gear.Middleware + func PublicKeyPinning(options PublicKeyPinningOptions) gear.Middleware + func SetReferrerPolicy(policy ReferrerPolicy) gear.Middleware + func StrictTransportSecurity(options StrictTransportSecurityOptions) gear.Middleware + func XSSFilter() gear.Middleware + type CSPDirectives struct + ChildSrc []string + ConnectSrc []string + DefaultSrc []string + FontSrc []string + FormAction []string + FrameAncestors []string + FrameSrc []string + ImgSrc []string + MediaSrc []string + ObjectSrc []string + PluginTypes []string + ReportOnly bool + ReportURI string + Sandbox []string + ScriptSrc []string + StyleSrc []string + type FrameGuardAction string + const FrameGuardActionAllowFrom + const FrameGuardActionDeny + const FrameGuardActionSameOrigin + type PublicKeyPinningOptions struct + IncludeSubdomains bool + MaxAge time.Duration + ReportOnly bool + ReportURI string + Sha256s []string + type ReferrerPolicy string + const ReferrerPolicyNoReferrer + const ReferrerPolicyOrigin + const ReferrerPolicyOriginWhenCrossOrigin + const ReferrerPolicySameOrigin + const ReferrerPolicyStrictOrigin + const ReferrerPolicyStrictOriginWhenCrossOrigin + const ReferrerPolicyUnsafeURL + const ReferrerPolicyWhenDowngrade + type StrictTransportSecurityOptions struct + IncludeSubDomains bool + MaxAge time.Duration + Preload bool