Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AuthRateLimiter ¶
AuthRateLimiter provides brute-force protection for authentication endpoints
func CleanupOldAttempts ¶
func CleanupOldAttempts()
CleanupOldAttempts removes stale entries from the map (call periodically)
func MasterAuth ¶
func RecordFailedLogin ¶
func RecordFailedLogin(ip string)
RecordFailedLogin should be called after a failed login attempt
func RecordSuccessfulLogin ¶
func RecordSuccessfulLogin(ip string)
RecordSuccessfulLogin should be called after a successful login
func SecurityHeaders ¶
SecurityHeaders adds security-related HTTP headers to all responses
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.