From dc915b1e17c84a17bbef89095858986bde5e993e Mon Sep 17 00:00:00 2001 From: Ilya Chernishev Date: Mon, 12 Jan 2026 17:50:58 +0300 Subject: [PATCH] refactor: expand BlockerEngine interface with Setup, List, Close methods and blocker info --- internal/blocker/interface.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/internal/blocker/interface.go b/internal/blocker/interface.go index 285b2b1..d55026d 100644 --- a/internal/blocker/interface.go +++ b/internal/blocker/interface.go @@ -1,6 +1,19 @@ package blocker +// BlockerEngine defines the interface for all firewall implementations type BlockerEngine interface { + // Core operations Ban(ip string) error Unban(ip string) error + + // Lifecycle management + Setup() error + Close() error + + // Query operations + List() ([]string, error) + + // Metadata + Name() string + IsAvailable() bool }