ddos

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName    = "ddos"
	ModuleVersion = "1.0.0"

	// Check interval
	DefaultCheckInterval = 30 * time.Second
)

Variables

This section is empty.

Functions

func Descriptor

func Descriptor() module.Descriptor

Descriptor returns the module descriptor NO FALLBACK - path must come from /etc/nftban/nftban.conf

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module implements the DDoS protection module

func New

func New() *Module

New creates a new DDoS protection module

func (*Module) Init

func (m *Module) Init(bus *eventbus.Bus) error

Init initializes the module with the event bus

func (*Module) Name

func (m *Module) Name() string

Name returns the module identifier

func (*Module) Start

func (m *Module) Start(ctx context.Context) error

Start begins the module's background work

func (*Module) Status

func (m *Module) Status() module.Status

Status returns the current module status

func (*Module) Stop

func (m *Module) Stop() error

Stop gracefully shuts down the module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL