Documentation
¶
Overview ¶
Package tcpguard exposes github.com/oarkflow/tcpguard as SPL builtins: load a BCL "guard pack" (inline block or file/directory), build a *tcpguard. Guard from it, and attach it as request middleware to an SPL server() from plugins/server. Deeper features (abuse detection tuning, approval workflows, Redis-backed stores, the management server) are intentionally not exposed yet - see docs/features for the supported surface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SPLGuard ¶
type SPLGuard struct {
// contains filtered or unexported fields
}
SPLGuard wraps a *tcpguard.Guard as an SPL handle passed to tcpguard_evaluate/guard_middleware.
func (*SPLGuard) Type ¶
func (g *SPLGuard) Type() object.ObjectType
type TCPGuardBundle ¶
type TCPGuardBundle struct {
// contains filtered or unexported fields
}
TCPGuardBundle wraps a parsed tcpguard.Bundle (a BCL guard pack) as an SPL handle passed to tcpguard_new.
func (*TCPGuardBundle) Inspect ¶
func (b *TCPGuardBundle) Inspect() string
func (*TCPGuardBundle) Type ¶
func (b *TCPGuardBundle) Type() object.ObjectType
Click to show internal directories.
Click to hide internal directories.