partial

package
v2.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 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 Predicate

type Predicate struct {
	WatchDelete bool
	WatchUpdate bool

	predicate.Funcs
}

func New

func New(opts ...PredicateOption) *Predicate

func (Predicate) Create

func (p Predicate) Create(event.CreateEvent) bool

func (Predicate) Delete

func (p Predicate) Delete(e event.DeleteEvent) bool

func (Predicate) Generic

func (p Predicate) Generic(event.GenericEvent) bool

func (Predicate) Update

func (p Predicate) Update(e event.UpdateEvent) bool

type PredicateOption

type PredicateOption func(*Predicate) *Predicate

func WatchDeleted

func WatchDeleted(val bool) PredicateOption

func WatchUpdate

func WatchUpdate(val bool) PredicateOption

Jump to

Keyboard shortcuts

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