Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
Index ¶
- func DayMinute(t time.Time) int
- type Day
- type DayMinutes
- type HourMin
- type ParseDayError
- type RawScheduleConfig
- type Schedule
- func (s *Schedule) ClosestDecentDay(day time.Weekday) (time.Weekday, int)
- func (s *Schedule) ClosestDecentMinute(date time.Time) (int, int)
- func (s *Schedule) DecentTimeFrames(day time.Weekday) []TimeFrame
- func (s *Schedule) HasDecentTimeframe(day time.Weekday) bool
- func (s Schedule) String() string
- type TimeFrame
- type TimeFrames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Day ¶
type Day struct { Minutes DayMinutes DecentFrames TimeFrames ClosestDecentDay time.Weekday }
type ParseDayError ¶
type RawScheduleConfig ¶
func GetGitRawConfig ¶
func GetGitRawConfig(options *map[string]string) (RawScheduleConfig, error)
func NewScheduleFromPlainText ¶
func NewScheduleFromPlainText(plainText io.Reader) (*RawScheduleConfig, error)
type Schedule ¶
type Schedule struct {
Days [7]Day
}
func NewScheduleFromRaw ¶
func NewScheduleFromRaw(config *RawScheduleConfig) (Schedule, error)
func (*Schedule) ClosestDecentDay ¶
func (*Schedule) ClosestDecentMinute ¶
func (*Schedule) DecentTimeFrames ¶
type TimeFrames ¶
type TimeFrames []TimeFrame
func (TimeFrames) String ¶
func (t TimeFrames) String() string
Click to show internal directories.
Click to hide internal directories.