tcpguard

package
v0.0.0-...-182b3b8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 10 Imported by: 0

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) Inspect

func (g *SPLGuard) Inspect() string

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

Jump to

Keyboard shortcuts

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