abusecontrols

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package abusecontrols persists shared HTTP abuse-control windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Attempt(context.Context, postgres.DBTX, httpsecurity.AbuseLimit) (httpsecurity.AbuseDecision, error)
}

Repository records fixed-window attempts in shared Postgres state.

func New

func New() Repository

New creates a SQLC-backed shared abuse-control repository.

Jump to

Keyboard shortcuts

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