identifier

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package identifier defines interfaces for resolving request identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentifierResolver

type IdentifierResolver interface {
	Resolve(r *http.Request) (model.Identifier, error)
}

IdentifierResolver extracts the identifier used to select a rate-limiting policy from an incoming HTTP request.

Applications can implement this interface to rate-limit requests by API key, user ID, IP address, tenant ID, or any other application-defined identifier.

Jump to

Keyboard shortcuts

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