Documentation
¶
Index ¶
- func BoundSessionToken(rule Rule, clientIP, userAgent string, issuedAt time.Time) string
- func BoundSessionTokenValid(rule Rule, token, clientIP, userAgent string, now time.Time, ttl time.Duration) bool
- func CleanPath(rawPath string) string
- func CookieName(domain, pagePath string) string
- func FailureDomain(domain, pagePath string) string
- func FailureDomainPrefix(domain string) string
- func HasProtectedPrefix(pagePath, protectedPrefix string) bool
- func Hash(password string) (string, error)
- func Matches(storedHash, password string) bool
- func NormalizeDomain(domain string) string
- func PrefixFileBody(rules []Rule) []byte
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundSessionToken ¶
func BoundSessionTokenValid ¶
func CookieName ¶
func FailureDomain ¶
func FailureDomainPrefix ¶
func HasProtectedPrefix ¶
func NormalizeDomain ¶
func PrefixFileBody ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.