group

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(columnKey string, o *types.Object) interface{}

func RuleMatch

func RuleMatch(rule *types.Rule, value *types.Object) bool

Types

type After

type After struct {
	ColumnKey string
	Time      *time.Time
}

func (After) Apply

func (a After) Apply(value *types.Object) bool

type Before

type Before struct {
	ColumnKey string
	Time      *time.Time
}

func (Before) Apply

func (b Before) Apply(value *types.Object) bool

type BeginWith

type BeginWith struct {
	ColumnKey string
	Content   string
}

func (BeginWith) Apply

func (b BeginWith) Apply(value *types.Object) bool

type Equal

type Equal struct {
	ColumnKey string
	Content   string
}

func (Equal) Apply

func (m Equal) Apply(value *types.Object) bool

type In

type In struct {
	ColumnKey string
	Content   []string
}

func (In) Apply

func (i In) Apply(value *types.Object) bool

type Pattern

type Pattern struct {
	ColumnKey string
	Content   string
}

func (Pattern) Apply

func (p Pattern) Apply(value *types.Object) bool

type RuleOperation

type RuleOperation interface {
	Apply(value *types.Object) bool
}

func NewRuleOperation

func NewRuleOperation(opType types.RuleOperation, col, val string) RuleOperation

Jump to

Keyboard shortcuts

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