Documentation ¶
Index ¶
- type FilterByClassPredicate
- func (p *FilterByClassPredicate) Create(e event.CreateEvent) bool
- func (p *FilterByClassPredicate) Delete(e event.DeleteEvent) bool
- func (p *FilterByClassPredicate) Generic(e event.GenericEvent) bool
- func (p *FilterByClassPredicate) Update(e event.UpdateEvent) bool
- func (p *FilterByClassPredicate) WithDefaultClass(defaultClass string)
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 ¶
func (p *FilterByClassPredicate) Create(e event.CreateEvent) bool
Create returns true if the Create event should be processed.
func (*FilterByClassPredicate) Delete ¶
func (p *FilterByClassPredicate) Delete(e event.DeleteEvent) bool
Delete returns true if the Delete event should be processed.
func (*FilterByClassPredicate) Generic ¶
func (p *FilterByClassPredicate) Generic(e event.GenericEvent) bool
Generic returns true if the Generic event should be processed.
func (*FilterByClassPredicate) Update ¶
func (p *FilterByClassPredicate) Update(e event.UpdateEvent) bool
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.
Click to show internal directories.
Click to hide internal directories.