Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { EventName string Location string TimeRangesList []TimeRange EventTime EventTime }
func BuildEventByParameters ¶
func BuildEventFronYAML ¶
func (Event) CreateEventsList ¶
Get all possible events with updated ActualStartingTime.
func (Event) GetEventData ¶
func (*Event) RegisterTimeRange ¶
type EventTime ¶
type EventTime struct { Duration time.Duration PrecautionDuration time.Duration // contains filtered or unexported fields }
func (EventTime) ActualStartingTime ¶
func (EventTime) AreCoincide ¶
func (EventTime) EndingTime ¶
The ActualStartingTime plus the Duration of event
func (EventTime) StartingTime ¶
The ActualStartingTime minus the PrecautionTime
type TimeRange ¶
type TimeRange struct {
// contains filtered or unexported fields
}
func CreateRangeByDuration ¶
func (TimeRange) AreCoincide ¶
The ActualStartingTime minus the PrecautionTime
func (TimeRange) EndingTime ¶
func (TimeRange) StartingTime ¶
Click to show internal directories.
Click to hide internal directories.