Documentation ¶
Index ¶
- type Calculator
- type RotationShift
- type ScheduleAssignment
- type Shift
- type ShiftCalculator
- func (r *ShiftCalculator) RotationShifts(ctx context.Context, start, end time.Time, rotationID string) ([]RotationShift, error)
- func (c *ShiftCalculator) ScheduleAssignments(ctx context.Context, start, end time.Time, schedID string) ([]ScheduleAssignment, error)
- func (c *ShiftCalculator) ScheduleFinalShifts(ctx context.Context, start, end time.Time, schedID string) ([]Shift, error)
- func (c *ShiftCalculator) ScheduleFinalShiftsWithOverrides(ctx context.Context, start, end time.Time, schedID string) ([]Shift, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calculator ¶
type Calculator interface { RotationShifts(ctx context.Context, start, end time.Time, rotationID string) ([]RotationShift, error) ScheduleAssignments(ctx context.Context, start, end time.Time, scheduleID string) ([]ScheduleAssignment, error) ScheduleFinalShifts(ctx context.Context, start, end time.Time, scheduleID string) ([]Shift, error) ScheduleFinalShiftsWithOverrides(ctx context.Context, start, end time.Time, scheduleID string) ([]Shift, error) }
type RotationShift ¶
type ScheduleAssignment ¶
type Shift ¶
type ShiftCalculator ¶
type ShiftCalculator struct { RuleStore rule.Store SchedStore *schedule.Store RotStore rotation.Store OStore override.Store }
func (*ShiftCalculator) RotationShifts ¶
func (r *ShiftCalculator) RotationShifts(ctx context.Context, start, end time.Time, rotationID string) ([]RotationShift, error)
func (*ShiftCalculator) ScheduleAssignments ¶
func (c *ShiftCalculator) ScheduleAssignments(ctx context.Context, start, end time.Time, schedID string) ([]ScheduleAssignment, error)
func (*ShiftCalculator) ScheduleFinalShifts ¶
func (*ShiftCalculator) ScheduleFinalShiftsWithOverrides ¶
func (c *ShiftCalculator) ScheduleFinalShiftsWithOverrides(ctx context.Context, start, end time.Time, schedID string) ([]Shift, error)
ScheduleFinalShiftsWithOverrides will calculate the final set of on-call shifts for the schedule during the given time frame.
Click to show internal directories.
Click to hide internal directories.