refactor: expand BlockerEngine interface with Setup, List, Close methods and blocker info

This commit is contained in:
Ilya Chernishev
2026-01-12 17:50:58 +03:00
parent 1689340223
commit dc915b1e17

View File

@@ -1,6 +1,19 @@
package blocker package blocker
// BlockerEngine defines the interface for all firewall implementations
type BlockerEngine interface { type BlockerEngine interface {
// Core operations
Ban(ip string) error Ban(ip string) error
Unban(ip string) error Unban(ip string) error
// Lifecycle management
Setup() error
Close() error
// Query operations
List() ([]string, error)
// Metadata
Name() string
IsAvailable() bool
} }