Documentation ¶
Index ¶
- Constants
- type Cadence
- type HappensOn
- type Occurrence
- type Recurrence
- func Friday(r Recurrence) Recurrence
- func Monday(r Recurrence) Recurrence
- func NewRecurrence(cadence Cadence, happensOn ...HappensOn) (*Recurrence, error)
- func RecurrenceFrom(raw StringRecurrence) (recurrence *Recurrence, err error)
- func Saturday(r Recurrence) Recurrence
- func Sunday(r Recurrence) Recurrence
- func Thursday(r Recurrence) Recurrence
- func Tuesday(r Recurrence) Recurrence
- func Wednesday(r Recurrence) Recurrence
- type StringRecurrence
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HappensOn ¶
type HappensOn func(Recurrence) Recurrence
type Recurrence ¶
type Recurrence struct { Cadence Cadence HappensOnMonday bool HappensOnTuesday bool HappensOnWednesday bool HappensOnThursday bool HappensOnFriday bool HappensOnSaturday bool HappensOnSunday bool }
func Friday ¶
func Friday(r Recurrence) Recurrence
func Monday ¶
func Monday(r Recurrence) Recurrence
func NewRecurrence ¶
func NewRecurrence(cadence Cadence, happensOn ...HappensOn) (*Recurrence, error)
func RecurrenceFrom ¶
func RecurrenceFrom(raw StringRecurrence) (recurrence *Recurrence, err error)
func Saturday ¶
func Saturday(r Recurrence) Recurrence
func Sunday ¶
func Sunday(r Recurrence) Recurrence
func Thursday ¶
func Thursday(r Recurrence) Recurrence
func Tuesday ¶
func Tuesday(r Recurrence) Recurrence
func Wednesday ¶
func Wednesday(r Recurrence) Recurrence
func (*Recurrence) HappensOn ¶
func (r *Recurrence) HappensOn() []time.Weekday
func (*Recurrence) Into ¶
func (r *Recurrence) Into() string
func (*Recurrence) ReccurUntil ¶
func (r *Recurrence) ReccurUntil(start time.Time, end time.Time, termination time.Time) (result []Occurrence, err error)
type StringRecurrence ¶
type StringRecurrence string
PROTO v1 0: [proto version] 1: [cadence] 2: [does this occur on Monday?] 3: [does this occur on Tuesday?] 4: [does this occur on Wednesday?] 5: [does this occur on Thursday?] 6: [does this occur on Friday?] 7: [does this occur on Saturday?] 8: [does this occur on Sunday?]
Click to show internal directories.
Click to hide internal directories.