schedule

package
v0.0.0-...-ae06870 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePairwise

func ComparePairwise(cmp Comparator, ts ...Scheduleable) bool

func CompareWithSlice

func CompareWithSlice(cmp Comparator, a Scheduleable, as ...Scheduleable) bool

func IsContained

func IsContained(ti, tj Scheduleable) bool

func NotNullIntersection

func NotNullIntersection(ti, tj Scheduleable) bool

Types

type Comparator

type Comparator func(a, b Scheduleable) bool

type Scheduleable

type Scheduleable interface {
	GetDayOfWeek() time.Weekday

	GetStartHour() int64
	GetStartMinute() int64

	GetEndHour() int64
	GetEndMinute() int64
}

Jump to

Keyboard shortcuts

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