scheduleEngine

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddItem

func AddItem(t time.Time, x interface{}, callback ScheduleCallback)

func Clear

func Clear()

func GetLocalTime

func GetLocalTime(t time.Time) (localTime time.Time)

func SetLocationCallback

func SetLocationCallback(callback LocationCallback)

func SetScheduleDay

func SetScheduleDay(callback ScheduleDay)

func Sort

func Sort()

func Trigger

func Trigger(t time.Time)

Types

type LocationCallback

type LocationCallback func() (loc *time.Location)

type ScheduleCallback

type ScheduleCallback func(x interface{})

type ScheduleDay

type ScheduleDay func(t time.Time)

type ScheduleItemSlice

type ScheduleItemSlice []scheduleItem

func GetSchedules

func GetSchedules() (schedules ScheduleItemSlice)

func (ScheduleItemSlice) Len

func (p ScheduleItemSlice) Len() int

func (ScheduleItemSlice) Less

func (p ScheduleItemSlice) Less(i, j int) bool

func (ScheduleItemSlice) Swap

func (p ScheduleItemSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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