Documentation
¶
Index ¶
- Constants
- func WeekdayToString(weekday time.Weekday) string
- type Configuration
- type Metadata
- type Schedule
- func (s *Schedule) Actions() []core.Action
- func (s *Schedule) Color() string
- func (s *Schedule) Configuration() []configuration.Field
- func (s *Schedule) Description() string
- func (s *Schedule) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (s *Schedule) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (s *Schedule) Icon() string
- func (s *Schedule) Label() string
- func (s *Schedule) Name() string
- func (s *Schedule) Setup(ctx core.TriggerContext) error
Constants ¶
View Source
const ( TypeMinutes = "minutes" TypeHours = "hours" TypeDays = "days" TypeWeeks = "weeks" TypeMonths = "months" TypeCron = "cron" WeekDayMonday = "monday" WeekDayTuesday = "tuesday" WeekDayWednesday = "wednesday" WeekDayThursday = "thursday" WeekDayFriday = "friday" WeekDaySaturday = "saturday" WeekDaySunday = "sunday" )
Variables ¶
This section is empty.
Functions ¶
func WeekdayToString ¶
Types ¶
type Configuration ¶
type Configuration struct {
Type string `json:"type"`
MinutesInterval *int `json:"minutesInterval"` // 1-59 minutes between triggers
HoursInterval *int `json:"hoursInterval"` // 1-23 hours between triggers
DaysInterval *int `json:"daysInterval"` // 1-31 days between triggers
WeeksInterval *int `json:"weeksInterval"` // 1-52 weeks between triggers
MonthsInterval *int `json:"monthsInterval"` // 1-24 months between triggers
Minute *int `json:"minute"` // 0-59 for hours, days, weeks, months
Hour *int `json:"hour"` // 0-23 for days, weeks, months
WeekDays []string `json:"weekDays"` // For weeks scheduling (multiple days)
DayOfMonth *int `json:"dayOfMonth"` // 1-31 for months scheduling
CronExpression *string `json:"cronExpression"` // For cron scheduling
Timezone *string `json:"timezone"` // Timezone offset (e.g., "0", "-5", "5.5")
}
type Schedule ¶
type Schedule struct{}
func (*Schedule) Configuration ¶
func (s *Schedule) Configuration() []configuration.Field
func (*Schedule) Description ¶
func (*Schedule) HandleAction ¶
func (*Schedule) HandleWebhook ¶
func (s *Schedule) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
Click to show internal directories.
Click to hide internal directories.