matcher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RULES_KEY        = "_rules_"
	MATCH_ROUTE_KEY  = "_match_route_"
	MATCH_DOMAIN_KEY = "_match_domain_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category int
const (
	Route Category = iota
	Host
)

type HostMatcher

type HostMatcher struct {
	// contains filtered or unexported fields
}

type MatchType

type MatchType int
const (
	Prefix MatchType = iota
	Exact
	Suffix
)

type RuleConfig

type RuleConfig[PluginConfig any] struct {
	// contains filtered or unexported fields
}

type RuleMatcher

type RuleMatcher[PluginConfig any] struct {
	// contains filtered or unexported fields
}

func (RuleMatcher[PluginConfig]) GetMatchConfig added in v1.0.1

func (m RuleMatcher[PluginConfig]) GetMatchConfig() (*PluginConfig, error)

func (*RuleMatcher[PluginConfig]) ParseRuleConfig

func (m *RuleMatcher[PluginConfig]) ParseRuleConfig(config gjson.Result,
	parsePluginConfig func(gjson.Result, *PluginConfig) error) error

Jump to

Keyboard shortcuts

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