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
Click to show internal directories.
Click to hide internal directories.