Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCookiePrefix string = "_powtect"
View Source
var DefaultLevel int = 4
View Source
var DefaultTTL int = 3600
View Source
var DefaultWhitelist = []string{}
Functions ¶
This section is empty.
Types ¶
type Powtect ¶
type Powtect struct {
Key []byte `json:"token,omitempty"`
Level int `json:"level,omitempty"`
Whitelist []string `json:"whitelist,omitempty"`
CookiePrefix string `json:"cookieprefix,omitempty"`
TTL int `json:"ttl,omitempty"`
}
func (Powtect) CaddyModule ¶
func (p Powtect) CaddyModule() caddy.ModuleInfo
Click to show internal directories.
Click to hide internal directories.