Add base interface and ufw realisation
All checks were successful
CI.yml / build (push) Successful in 36s

This commit is contained in:
d3m0k1d
2026-01-11 16:27:45 +03:00
parent 32a03807f1
commit aec8a8286f
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package blocker
type BlockerEngine interface {
Ban(ip string) error
Unban(ip string) error
IsBanned(ip string) (bool, error)
Flush() error
}