Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Javex/caddy-fail2ban
/ functions
Functions
19 in github.com/Javex/caddy-fail2ban
⨍
Functions
19
◇
Types & classes
3
↓ 5 callers
Method
Match
(req *http.Request)
fail2ban.go:43
↓ 3 callers
Method
Provision
Provision implements caddy.Provisioner.
fail2ban.go:36
↓ 3 callers
Method
UnmarshalCaddyfile
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
fail2ban.go:68
↓ 3 callers
Function
cleanupTest
(t *testing.T, tempDir string)
fail2ban_test.go:27
↓ 3 callers
Method
loadBannedIps
loadBannedIps loads list of banned IPs from file on disk and notifies subscribers in case it was successful
banlist.go:158
↓ 3 callers
Function
setupTest
(t *testing.T)
fail2ban_test.go:16
↓ 2 callers
Method
getBannedIps
()
banlist.go:176
↓ 2 callers
Method
subscribeToReload
Provide a channel that will receive a boolean true value whenever the list of banned IPs has been reloaded. Mostly useful for tests so they can wait f
banlist.go:152
↓ 1 callers
Method
IsBanned
(remote_ip string)
banlist.go:45
↓ 1 callers
Function
NewBanlist
(ctx caddy.Context, logger *zap.Logger, banfile *string)
banlist.go:30
↓ 1 callers
Method
Reload
()
banlist.go:57
↓ 1 callers
Method
Start
()
banlist.go:41
↓ 1 callers
Method
handleQuery
(query banQuery)
banlist.go:137
↓ 1 callers
Method
monitorBannedIps
()
banlist.go:64
Method
CaddyModule
CaddyModule returns the Caddy module information.
fail2ban.go:28
Function
TestBanIp
(t *testing.T)
fail2ban_test.go:104
Function
TestHeaderBan
(t *testing.T)
fail2ban_test.go:71
Function
TestModule
(t *testing.T)
fail2ban_test.go:35
Function
init
()
fail2ban.go:14