schedule

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CutoffTimes

type CutoffTimes struct {
	C chan *Day
	// contains filtered or unexported fields
}

CutoffTimes is a time.Ticker which fires on banking days to trigger processing events (like end-of-day, or same-day ACH).

func ForCutoffTimes

func ForCutoffTimes(timeService stime.TimeService, tz string, timestamps []string) (*CutoffTimes, error)

func (*CutoffTimes) Stop

func (ct *CutoffTimes) Stop()

type Day added in v0.14.0

type Day struct {
	Time    time.Time
	Holiday *cal.Holiday

	IsBankingDay bool
	IsHoliday    bool
	IsWeekend    bool

	// FirstWindow is true when Time is the first cutoff time of the day
	FirstWindow bool
}

Jump to

Keyboard shortcuts

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