core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SampleStrategyHead     = policy.SampleStrategyHead
	SampleStrategyTail     = policy.SampleStrategyTail
	SampleStrategyHeadTail = policy.SampleStrategyHeadTail
)

Variables

This section is empty.

Functions

func Middleware

func Middleware(cfg Config) func(http.Handler) http.Handler

func Wrap

func Wrap(next http.Handler, cfg Config) http.Handler

Types

type BodyConfig

type BodyConfig = policy.BodyConfig

type CharsetConfig

type CharsetConfig = policy.CharsetConfig

type CharsetResult

type CharsetResult = model.CharsetResult

type ComplexityConfig

type ComplexityConfig = policy.ComplexityConfig

type ComplexityResult

type ComplexityResult = model.ComplexityResult

type Config

type Config = policy.Config

func DefaultConfig

func DefaultConfig() Config

type EntropyResult

type EntropyResult = model.EntropyResult

type FingerprintConfig

type FingerprintConfig = policy.FingerprintConfig

type FingerprintResult

type FingerprintResult = model.FingerprintResult

type FormatTextMetrics

type FormatTextMetrics = model.FormatTextMetrics

type MetaInfo

type MetaInfo = model.MetaInfo

type Profile

type Profile = model.Profile

func FromContext

func FromContext(ctx context.Context) (*Profile, bool)

type SampleStrategy

type SampleStrategy = policy.SampleStrategy

type ScoreFactor

type ScoreFactor = model.ScoreFactor

type Warning

type Warning = model.Warning

Jump to

Keyboard shortcuts

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