rules

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequestSchemeMismatch = errors.New("request scheme mismatch")
	ErrRequestMethodMismatch = errors.New("request method mismatch")
	ErrRequestHostMismatch   = errors.New("request host mismatch")
	ErrRequestPathMismatch   = errors.New("request path mismatch")
)
View Source
var (
	ErrNoGlobPatternDefined  = errors.New("no glob pattern defined")
	ErrNoRegexPatternDefined = errors.New("no regex pattern defined")
)
View Source
var ErrUnsupportedRuleSetVersion = errors.New("unsupported rule set version")
View Source
var Module = fx.Options(
	fx.Provide(
		NewRuleFactory,
		newRepository,
		NewRuleSetProcessor,
		newRuleExecutor,
	),
	provider.Module,
)

Module is invoked on app bootstrapping. nolint: gochecknoglobals

Functions

func NewRuleSetProcessor

func NewRuleSetProcessor(repository rule.Repository, factory rule.Factory) rule.SetProcessor

Types

type CheckFunc

type CheckFunc func() error

type RouteMatcher

type RouteMatcher interface {
	Matches(request *heimdall.Request, keys, values []string) error
}

Jump to

Keyboard shortcuts

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