predicate

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterByClassPredicate

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

FilterByClassPredicate allows filtering by the class annotation.

func NewFilterByClassPredicate

func NewFilterByClassPredicate(class, annKey string) *FilterByClassPredicate

NewFilterByClassPredicate return a new ClassPredicate. class param represents the class of predicate. annKey represents the class annotation key.

func (*FilterByClassPredicate) Create

Create returns true if the Create event should be processed.

func (*FilterByClassPredicate) Delete

Delete returns true if the Delete event should be processed.

func (*FilterByClassPredicate) Generic

Generic returns true if the Generic event should be processed.

func (*FilterByClassPredicate) Update

Update returns true if the Update event should be processed.

func (*FilterByClassPredicate) WithDefaultClass

func (p *FilterByClassPredicate) WithDefaultClass(defaultClass string)

WithDefaultClass represents the default value for the class annotation, used when the annotation value is empty.

Jump to

Keyboard shortcuts

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