Documentation
¶
Index ¶
- Constants
- Variables
- func ClearCookie(name string, w http.ResponseWriter)
- func EnsureNoOpenRedirect(redirect string) (string, error)
- func MakeReverseProxy(target string) (*httputil.ReverseProxy, error)
- func SetCookie(name, value string, expiry time.Time, w http.ResponseWriter)
- type DNSBL
- type DNSBLResponse
- type DecayMap
- type DecayMapEntry
- type UnixRoundTripper
Constants ¶
View Source
const ( ResponseGood = DNSBLResponse(0) ResponseUnknown = DNSBLResponse(255) )
Variables ¶
View Source
var CookiePrefix = ".go-away-"
Functions ¶
func ClearCookie ¶
func ClearCookie(name string, w http.ResponseWriter)
func EnsureNoOpenRedirect ¶
func MakeReverseProxy ¶
func MakeReverseProxy(target string) (*httputil.ReverseProxy, error)
Types ¶
type DNSBLResponse ¶ added in v0.3.0
type DNSBLResponse uint8
func (DNSBLResponse) Bad ¶ added in v0.3.0
func (r DNSBLResponse) Bad() bool
type DecayMap ¶ added in v0.3.0
type DecayMap[K, V comparable] struct { // contains filtered or unexported fields }
func NewDecayMap ¶ added in v0.3.0
func NewDecayMap[K, V comparable]() *DecayMap[K, V]
type DecayMapEntry ¶ added in v0.3.0
type DecayMapEntry[V comparable] struct { Value V // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.