Documentation ¶
Index ¶
- type ConstraintService
- func (svc *ConstraintService) CreateConstraint(ctx context.Context, req *connect.Request[rosterv1.CreateConstraintRequest]) (*connect.Response[rosterv1.CreateConstraintResponse], error)
- func (svc *ConstraintService) DeleteConstraint(ctx context.Context, req *connect.Request[rosterv1.DeleteConstraintRequest]) (*connect.Response[rosterv1.DeleteConstraintResponse], error)
- func (svc *ConstraintService) FindConstraints(ctx context.Context, req *connect.Request[rosterv1.FindConstraintsRequest]) (*connect.Response[rosterv1.FindConstraintsResponse], error)
- func (svc *ConstraintService) UpdateConstraint(ctx context.Context, req *connect.Request[rosterv1.UpdateConstraintRequest]) (*connect.Response[rosterv1.UpdateConstraintResponse], error)
- type HolidayCache
- type RosterService
- func (svc *RosterService) AnalyzeWorkTime(ctx context.Context, req *connect.Request[rosterv1.AnalyzeWorkTimeRequest]) (*connect.Response[rosterv1.AnalyzeWorkTimeResponse], error)
- func (svc *RosterService) ApproveRoster(ctx context.Context, req *connect.Request[rosterv1.ApproveRosterRequest]) (*connect.Response[rosterv1.ApproveRosterResponse], error)
- func (svc *RosterService) CreateRosterType(ctx context.Context, req *connect.Request[rosterv1.CreateRosterTypeRequest]) (*connect.Response[rosterv1.CreateRosterTypeResponse], error)
- func (svc *RosterService) DeleteRoster(ctx context.Context, req *connect.Request[rosterv1.DeleteRosterRequest]) (*connect.Response[rosterv1.DeleteRosterResponse], error)
- func (svc *RosterService) DeleteRosterType(ctx context.Context, req *connect.Request[rosterv1.DeleteRosterTypeRequest]) (*connect.Response[rosterv1.DeleteRosterTypeResponse], error)
- func (svc *RosterService) ExportRoster(ctx context.Context, req *connect.Request[rosterv1.ExportRosterRequest]) (*connect.Response[rosterv1.ExportRosterResponse], error)
- func (svc *RosterService) GetRequiredShifts(ctx context.Context, req *connect.Request[rosterv1.GetRequiredShiftsRequest]) (*connect.Response[rosterv1.GetRequiredShiftsResponse], error)
- func (svc *RosterService) GetRoster(ctx context.Context, req *connect.Request[rosterv1.GetRosterRequest]) (*connect.Response[rosterv1.GetRosterResponse], error)
- func (svc *RosterService) GetUserShifts(ctx context.Context, req *connect.Request[rosterv1.GetUserShiftsRequest]) (*connect.Response[rosterv1.GetUserShiftsResponse], error)
- func (svc *RosterService) GetWorkingStaff(ctx context.Context, req *connect.Request[rosterv1.GetWorkingStaffRequest]) (*connect.Response[rosterv1.GetWorkingStaffResponse], error)
- func (svc *RosterService) GetWorkingStaff2(ctx context.Context, req *connect.Request[rosterv1.GetWorkingStaffRequest2]) (*connect.Response[rosterv1.GetWorkingStaffResponse], error)
- func (svc *RosterService) ListRosterTypes(ctx context.Context, req *connect.Request[rosterv1.ListRosterTypesRequest]) (*connect.Response[rosterv1.ListRosterTypesResponse], error)
- func (svc *RosterService) ReapplyShiftTimes(ctx context.Context, req *connect.Request[rosterv1.ReapplyShiftTimesRequest]) (*connect.Response[rosterv1.ReapplyShiftTimesResponse], error)
- func (svc *RosterService) SaveRoster(ctx context.Context, req *connect.Request[rosterv1.SaveRosterRequest]) (*connect.Response[rosterv1.SaveRosterResponse], error)
- func (svc *RosterService) SendRosterPreview(ctx context.Context, req *connect.Request[rosterv1.SendRosterPreviewRequest]) (*connect.Response[rosterv1.SendRosterPreviewResponse], error)
- type ShiftDiff
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstraintService ¶
type ConstraintService struct { rosterv1connect.UnimplementedConstraintServiceHandler *config.Providers }
func NewConstraintService ¶
func NewConstraintService(p *config.Providers) *ConstraintService
func (*ConstraintService) CreateConstraint ¶
func (svc *ConstraintService) CreateConstraint(ctx context.Context, req *connect.Request[rosterv1.CreateConstraintRequest]) (*connect.Response[rosterv1.CreateConstraintResponse], error)
func (*ConstraintService) DeleteConstraint ¶
func (svc *ConstraintService) DeleteConstraint(ctx context.Context, req *connect.Request[rosterv1.DeleteConstraintRequest]) (*connect.Response[rosterv1.DeleteConstraintResponse], error)
func (*ConstraintService) FindConstraints ¶
func (svc *ConstraintService) FindConstraints(ctx context.Context, req *connect.Request[rosterv1.FindConstraintsRequest]) (*connect.Response[rosterv1.FindConstraintsResponse], error)
func (*ConstraintService) UpdateConstraint ¶
func (svc *ConstraintService) UpdateConstraint(ctx context.Context, req *connect.Request[rosterv1.UpdateConstraintRequest]) (*connect.Response[rosterv1.UpdateConstraintResponse], error)
type HolidayCache ¶
type HolidayCache struct { singleflight.Group // contains filtered or unexported fields }
func NewHolidayCache ¶
func NewHolidayCache(getter calendarv1connect.HolidayServiceClient) *HolidayCache
func (*HolidayCache) For ¶
func (cache *HolidayCache) For(ctx context.Context, from time.Time, to time.Time) (map[string]*calendarv1.PublicHoliday, error)
type RosterService ¶
type RosterService struct { rosterv1connect.UnimplementedRosterServiceHandler *config.Providers }
func NewRosterService ¶
func NewRosterService(p *config.Providers) *RosterService
func (*RosterService) AnalyzeWorkTime ¶
func (svc *RosterService) AnalyzeWorkTime(ctx context.Context, req *connect.Request[rosterv1.AnalyzeWorkTimeRequest]) (*connect.Response[rosterv1.AnalyzeWorkTimeResponse], error)
func (*RosterService) ApproveRoster ¶
func (svc *RosterService) ApproveRoster(ctx context.Context, req *connect.Request[rosterv1.ApproveRosterRequest]) (*connect.Response[rosterv1.ApproveRosterResponse], error)
func (*RosterService) CreateRosterType ¶
func (svc *RosterService) CreateRosterType(ctx context.Context, req *connect.Request[rosterv1.CreateRosterTypeRequest]) (*connect.Response[rosterv1.CreateRosterTypeResponse], error)
func (*RosterService) DeleteRoster ¶
func (svc *RosterService) DeleteRoster(ctx context.Context, req *connect.Request[rosterv1.DeleteRosterRequest]) (*connect.Response[rosterv1.DeleteRosterResponse], error)
func (*RosterService) DeleteRosterType ¶
func (svc *RosterService) DeleteRosterType(ctx context.Context, req *connect.Request[rosterv1.DeleteRosterTypeRequest]) (*connect.Response[rosterv1.DeleteRosterTypeResponse], error)
func (*RosterService) ExportRoster ¶
func (svc *RosterService) ExportRoster(ctx context.Context, req *connect.Request[rosterv1.ExportRosterRequest]) (*connect.Response[rosterv1.ExportRosterResponse], error)
func (*RosterService) GetRequiredShifts ¶
func (svc *RosterService) GetRequiredShifts(ctx context.Context, req *connect.Request[rosterv1.GetRequiredShiftsRequest]) (*connect.Response[rosterv1.GetRequiredShiftsResponse], error)
func (*RosterService) GetRoster ¶
func (svc *RosterService) GetRoster(ctx context.Context, req *connect.Request[rosterv1.GetRosterRequest]) (*connect.Response[rosterv1.GetRosterResponse], error)
func (*RosterService) GetUserShifts ¶
func (svc *RosterService) GetUserShifts(ctx context.Context, req *connect.Request[rosterv1.GetUserShiftsRequest]) (*connect.Response[rosterv1.GetUserShiftsResponse], error)
func (*RosterService) GetWorkingStaff ¶
func (svc *RosterService) GetWorkingStaff(ctx context.Context, req *connect.Request[rosterv1.GetWorkingStaffRequest]) (*connect.Response[rosterv1.GetWorkingStaffResponse], error)
func (*RosterService) GetWorkingStaff2 ¶ added in v1.4.15
func (svc *RosterService) GetWorkingStaff2(ctx context.Context, req *connect.Request[rosterv1.GetWorkingStaffRequest2]) (*connect.Response[rosterv1.GetWorkingStaffResponse], error)
func (*RosterService) ListRosterTypes ¶
func (svc *RosterService) ListRosterTypes(ctx context.Context, req *connect.Request[rosterv1.ListRosterTypesRequest]) (*connect.Response[rosterv1.ListRosterTypesResponse], error)
func (*RosterService) ReapplyShiftTimes ¶ added in v1.4.22
func (svc *RosterService) ReapplyShiftTimes(ctx context.Context, req *connect.Request[rosterv1.ReapplyShiftTimesRequest]) (*connect.Response[rosterv1.ReapplyShiftTimesResponse], error)
func (*RosterService) SaveRoster ¶
func (svc *RosterService) SaveRoster(ctx context.Context, req *connect.Request[rosterv1.SaveRosterRequest]) (*connect.Response[rosterv1.SaveRosterResponse], error)
func (*RosterService) SendRosterPreview ¶
func (svc *RosterService) SendRosterPreview(ctx context.Context, req *connect.Request[rosterv1.SendRosterPreviewRequest]) (*connect.Response[rosterv1.SendRosterPreviewResponse], error)
Click to show internal directories.
Click to hide internal directories.