Documentation ¶
Index ¶
- func LoadCalendars(year int)
- type BHCalendar
- type BHCalendars
- type BankHoliday
- type Configuration
- func (c *Configuration) FindPriceByDay(dayType string) (*int, error)
- func (c *Configuration) FindRotationExcludedHoursByDay(dayType string) (*RotationExcludedHoursDay, error)
- func (c *Configuration) FindRotationUserInfoByID(userID string) (*RotationUser, error)
- func (c *Configuration) IsScheduleIDToIgnore(scheduleID string) bool
- type Day
- type RotationExcludedHoursDay
- type RotationInfo
- type RotationPriceDay
- type RotationPrices
- type RotationUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCalendars ¶
func LoadCalendars(year int)
Types ¶
type BHCalendar ¶
type BHCalendar struct {
DaysMaps map[string]BankHoliday // map[date 02-01-2006 format]
}
func (*BHCalendar) IsDateBankHoliday ¶
func (b *BHCalendar) IsDateBankHoliday(date time.Time) bool
type BHCalendars ¶
type BHCalendars map[string]BHCalendar // map[calendar_name-year]
var BankHolidaysCalendars BHCalendars
type BankHoliday ¶
type Configuration ¶
type Configuration struct { PdAuthToken string RotationInfo RotationInfo RotationExcludedHours []RotationExcludedHoursDay RotationPrices RotationPrices RotationUsers []RotationUser SchedulesToIgnore []string // contains filtered or unexported fields }
func New ¶
func New() *Configuration
func (*Configuration) FindPriceByDay ¶
func (c *Configuration) FindPriceByDay(dayType string) (*int, error)
func (*Configuration) FindRotationExcludedHoursByDay ¶ added in v1.2.0
func (c *Configuration) FindRotationExcludedHoursByDay(dayType string) (*RotationExcludedHoursDay, error)
func (*Configuration) FindRotationUserInfoByID ¶
func (c *Configuration) FindRotationUserInfoByID(userID string) (*RotationUser, error)
func (*Configuration) IsScheduleIDToIgnore ¶
func (c *Configuration) IsScheduleIDToIgnore(scheduleID string) bool
type Day ¶
func (*Day) UnmarshalYAML ¶
type RotationExcludedHoursDay ¶ added in v1.2.0
type RotationInfo ¶ added in v1.2.0
type RotationPriceDay ¶ added in v1.2.0
type RotationPrices ¶ added in v1.2.0
type RotationPrices struct { Currency string DaysInfo []RotationPriceDay }
type RotationUser ¶
Click to show internal directories.
Click to hide internal directories.