evtypes

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByAutoClaim

func FilterByAutoClaim(autoClaim bool) func(models.EventType) bool

func FilterByFlags

func FilterByFlags(flags ...string) func(models.EventType) bool

func FilterByFrequency

func FilterByFrequency(f models.Frequency) func(models.EventType) bool

func FilterByNames

func FilterByNames(names ...string) func(models.EventType) bool

func FilterExpired

func FilterExpired(ev models.EventType) bool

func FilterInactive

func FilterInactive(ev models.EventType) bool

func FilterNotOpenable

func FilterNotOpenable(ev models.EventType) bool

func FilterNotStarted

func FilterNotStarted(ev models.EventType) bool

func Init

func Init(_ context.Context, cfg extConfig, sig chan struct{})

func InitForOneTimeEvent added in v1.4.1

func InitForOneTimeEvent(cfg extConfig)

Types

type EventTypeser

type EventTypeser interface {
	EventTypes() *Types
}

func NewConfig

func NewConfig(getter kv.Getter) EventTypeser

type Types

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

func (*Types) Get

func (t *Types) Get(name string, filters ...filter) *models.EventType

func (*Types) List

func (t *Types) List(filters ...filter) []models.EventType

func (*Types) Names

func (t *Types) Names(filters ...filter) []string

func (*Types) PrepareEvents

func (t *Types) PrepareEvents(nullifier string, filters ...filter) []data.Event

func (*Types) Push

func (t *Types) Push(types ...models.EventType)

Push adds new event type or overwrites existing one

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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