gatekeeper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCacheTTL is the default cache TTL (1 hour)
	DefaultCacheTTL = 1 * time.Hour
	// DefaultListenAddr is the default listening address
	DefaultListenAddr = ":8888"
	// TarpitDuration is the tarpit duration (1 hour)
	TarpitDuration = 1 * time.Hour
	// TarpitTickInterval is the byte sending interval for tarpit
	TarpitTickInterval = 1 * time.Second
	// DefaultDBPath is the default database path
	DefaultDBPath = "./gatekeeper.db"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GateKeeper

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

GateKeeper manages detection and blocking of direct IP access

func NewGateKeeper

func NewGateKeeper(cfg *config.Configuration) (*GateKeeper, error)

NewGateKeeper creates a new GateKeeper instance

func (*GateKeeper) Run

func (g *GateKeeper) Run() error

Run starts the HTTP server

Jump to

Keyboard shortcuts

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