Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunnerOptions ¶
type ScheduleTask ¶
type Task ¶
type Task[A model.IEntry, T tasks.Task[A]] struct { Config T `fig:"config" yaml:"config"` Schedules []string `fig:"schedules" yaml:"schedules"` ChatIDs []int64 `fig:"chats" yaml:"chats"` }
func (Task[A, T]) GetSchedules ¶
type TaskAction ¶
type TaskAction string
const (
TaskSendLastEntries TaskAction = "send_last_entries"
)
type TasksConfig ¶
type TasksConfig[T model.IEntry] struct { Timezone *time.Location `fig:"-" yaml:"-"` SendLastEntries Task[T, tasks.SendLastEntries[T]] `fig:"send_last_entries" yaml:"send_last_entries"` SendLastStories Task[T, tasks.SendLastStories[T]] `fig:"send_last_stories" yaml:"send_last_stories"` Backup Task[T, tasks.Backup[T]] `fig:"backup" yaml:"backup"` Cleanup Task[T, tasks.Cleanup[T]] `fig:"cleanup" yaml:"cleanup"` }
Click to show internal directories.
Click to hide internal directories.