schedule

package
v0.0.0-...-1d7b3b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertWeekday

func ConvertWeekday(day string) (time.Weekday, error)

Types

type Schedule

type Schedule struct {
	// contains filtered or unexported fields
}

func New

func New(schedSpec *ScheduleSpec) *Schedule

func (*Schedule) Contains

func (s *Schedule) Contains(t time.Time) bool

type ScheduleSpec

type ScheduleSpec struct {
	StartTime WeekdayTime // Monday 8am
	EndTime   WeekdayTime // Friday 5pm
}

type TimeOfDay

type TimeOfDay struct {
	Hour   int
	Minute int
}

type WeekdayTime

type WeekdayTime struct {
	Weekday   time.Weekday
	TimeOfDay TimeOfDay
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL