Documentation ¶
Index ¶
- func FilterByAutoClaim(autoClaim bool) func(models.EventType) bool
- func FilterByFlags(flags ...string) func(models.EventType) bool
- func FilterByFrequency(f models.Frequency) func(models.EventType) bool
- func FilterByNames(names ...string) func(models.EventType) bool
- func FilterExpired(ev models.EventType) bool
- func FilterInactive(ev models.EventType) bool
- func FilterNotOpenable(ev models.EventType) bool
- func FilterNotStarted(ev models.EventType) bool
- func Init(_ context.Context, cfg extConfig, sig chan struct{})
- type EventTypeser
- type Types
- func (t *Types) Get(name string, filters ...filter) *models.EventType
- func (t *Types) List(filters ...filter) []models.EventType
- func (t *Types) Names(filters ...filter) []string
- func (t *Types) PrepareEvents(nullifier string, filters ...filter) []data.Event
- func (t *Types) Push(types ...models.EventType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterExpired ¶
func FilterInactive ¶
func FilterNotOpenable ¶
func FilterNotStarted ¶
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) PrepareEvents ¶
Click to show internal directories.
Click to hide internal directories.