refactor: expand BlockerEngine interface with Setup, List, Close methods and blocker info
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user