model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	Group             map[string][]*MatcherBucket `json:"group"`
	VariableWhitelist []string                    `json:"variable_whitelist"`
}

func NewMatcher

func NewMatcher(config string) (*Matcher, error)

func (*Matcher) Match

func (m *Matcher) Match(group string, env expr.Env) (bool, string, error)

type MatcherBucket

type MatcherBucket struct {
	RuleExpr string      `json:"expr"`
	Extend   interface{} `json:"extend"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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