resource

package
v0.0.0-...-e3e1183 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompareEquals    = "EQUALS"
	CompareNotEquals = "NOTEQUALS"

	RelationAnd = "AND"
	RelationOr  = "OR"
)

const

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultMatcher

type DefaultMatcher struct {
}

DefaultMatcher macher

func NewDefaultMatcher

func NewDefaultMatcher() *DefaultMatcher

NewDefaultMatcher mew

func (*DefaultMatcher) Match

func (m *DefaultMatcher) Match(headers types.HeaderMap, resourceConfig *model.ResourceConfig) bool

Match match

type Matcher

type Matcher interface {
	Match(headers types.HeaderMap, resourceConfig *model.ResourceConfig) bool
}

Matcher match

type MatcherEngine

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

MatcherEngine match

func NewMatcherEnine

func NewMatcherEnine(matcher Matcher) MatcherEngine

NewMatcherEnine new

func (MatcherEngine) Match

func (e MatcherEngine) Match(headers types.HeaderMap, ruleConfig *model.RuleConfig) bool

Match match

Jump to

Keyboard shortcuts

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