Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶
func CheckConfig(target TargetValue) (err error)
Returns error for invalid configurations
Types ¶
type TargetValue ¶
For each weekday, we can define a list of time ranges we want to try to make a reservation in. The list is sorted by descreasing priority. If a slot is open within the first time range, a reservation will be executed for that slot.
func LoadConfig ¶
func LoadConfig(filename string) (target TargetValue, err error)
func (*TargetValue) Clone ¶
func (t *TargetValue) Clone() TargetValue
type TargetValueJSON ¶
func (TargetValueJSON) Parse ¶
func (json TargetValueJSON) Parse() (target TargetValue, err error)
Click to show internal directories.
Click to hide internal directories.