tag

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeSys  TagType = 0
	TypeUser TagType = 1

	Equal    = "EQUAL"
	NotEqual = "NOT_EQUAL"
	In       = "IN"
	NotIn    = "NOT_IN"
	Regex    = "REGEX"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Relation

type Relation int32
const (
	AND       Relation = 0
	OR        Relation = 1
	COMPOSITE Relation = 2
)

type Rule

type Rule struct {
	ID         string
	Name       string
	Tags       []Tag
	Expression Relation
}

func (*Rule) Hit

func (r *Rule) Hit(ctx context.Context) bool

type Tag

type Tag struct {
	Type     TagType
	Field    string
	Operator string
	Value    string
}

Tag is tsf tag

func (Tag) Hit

func (t Tag) Hit(ctx context.Context) bool

type TagType

type TagType int32

Jump to

Keyboard shortcuts

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