filters

package
v0.0.0-...-50646a8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorUnrecognizedFilter

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

func (ErrorUnrecognizedFilter) Error

func (euf ErrorUnrecognizedFilter) Error() string

type Filter

type Filter interface {
	Filter(ctx context.Context, account string, calendar *caldav.Calendar) bool
	WithArgument(ctx context.Context, argument string) (Filter, error)
}

type Filters

type Filters []Filter

func Selected

func Selected(ctx context.Context, selected []string) (Filters, error)

func (Filters) Apply

func (f Filters) Apply(ctx context.Context, account string, calendar *caldav.Calendar) bool

type NotFilter

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

func (*NotFilter) Filter

func (nf *NotFilter) Filter(_ context.Context, account string, calendar *caldav.Calendar) bool

func (*NotFilter) WithArgument

func (nf *NotFilter) WithArgument(_ context.Context, argument string) (Filter, error)

Jump to

Keyboard shortcuts

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