Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultExecutor ¶ added in v0.0.2
func NewDefaultExecutor() *defaultExecutor
func NewTestFaultyExecutor ¶ added in v0.0.3
Types ¶
type Backend ¶ added in v0.0.2
type Backend interface {
Initialize() error
Ban(ip string, ipv6 bool, d time.Duration) error
Finalize() error
}
func NewIpsetBackend ¶ added in v0.0.2
func NewNftBackend ¶ added in v0.0.2
func NewTestBackend ¶ added in v0.0.2
type Configuration ¶
type Configuration struct {
Verbose bool
Backend string
SaveFilePath string
Rules map[string]*Rule
}
func (*Configuration) ReadFile ¶
func (c *Configuration) ReadFile(path string) error
type Runner ¶ added in v0.0.2
type Runner struct {
Configuration *Configuration
Executor Executor
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(c *Configuration) *Runner
func (*Runner) Initialize ¶ added in v0.0.2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.