Add base interface and ufw realisation
All checks were successful
CI.yml / build (push) Successful in 36s
All checks were successful
CI.yml / build (push) Successful in 36s
This commit is contained in:
8
internal/blocker/interface.go
Normal file
8
internal/blocker/interface.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user