Documentation ¶
Overview ¶
Package schedule defines the interface for scheduling of slackscot actions
Index ¶
Constants ¶
View Source
const ( Weeks = "weeks" Hours = "hours" Days = "days" Minutes = "minutes" Seconds = "seconds" )
Unit values
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct { // Internal value (every 1 minute would be expressed with an interval of 1). Must be set explicitly or implicitly (a weekday value implicitly sets the interval to 1) Interval uint64 // Must be set explicitly or implicitly ("weeks" is implicitly set when "Weekday" is set). Valid time units are: "weeks", "hours", "days", "minutes", "seconds" Unit string // Optional day of the week. If set, unit and interval are ignored and implicitly considered to be "every 1 week" Weekday string // Optional "at time" value (i.e. "10:30") AtTime string }
Definition holds the data defining a schedule definition
func (Definition) String ¶
func (d Definition) String() string
Returns a human-friendly string for the schedule definition
Click to show internal directories.
Click to hide internal directories.