Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScheduleEvery5Min = "every_5min" ScheduleEveryHour = "every_hour" ScheduleDaily = "daily" ScheduleWeekly = "weekly" ScheduleMonthly = "monthly" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct {
Type string `yaml:"type"` // e.g., "slack"
WebhookURL string `yaml:"webhook_url"`
Token TokenConfig `yaml:"token"`
Channel string `yaml:"channel"`
}
type Task ¶
type Task struct {
Name string `yaml:"name"`
Database string `yaml:"database"` // reference to database config
Schedule string `yaml:"schedule"` // e.g., "every 1h", "daily 15:00"
Timezone string `yaml:"timezone"` // e.g., "Asia/Tokyo"
Query string `yaml:"query"`
Columns []string `yaml:"columns"`
Message string `yaml:"message"`
DestinationName string `yaml:"destination"`
OutputFormat string `yaml:"output_format"` // "json" or "csv"
}
type TokenConfig ¶
Click to show internal directories.
Click to hide internal directories.