rules

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

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

func (*Rule) EventType

func (r *Rule) EventType() string

func (*Rule) StorePayload

func (r *Rule) StorePayload() bool

func (*Rule) TTL

func (r *Rule) TTL() time.Duration

type RuleConfig

type RuleConfig struct {
	Regex        string
	StorePayload bool
	RuleTTL      time.Duration
	EventType    string
}

type Rules

type Rules []*Rule

func NewRules

func NewRules(rules []RuleConfig) (Rules, error)

func (Rules) FindRule

func (r Rules) FindRule(dest string) (*Rule, error)

Jump to

Keyboard shortcuts

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