Documentation
¶
Index ¶
- Variables
- func JobIdKey(job string, id uint64) string
- type Params
- type State
- func (s *State) CreateDispatch(ctx context.Context, job string, id uint64, dsp *centrum.Dispatch) error
- func (s *State) DeleteDispatch(ctx context.Context, job string, id uint64) error
- func (s *State) DeleteUnit(ctx context.Context, job string, id uint64) error
- func (s *State) DispatchesStore() *store.Store[centrum.Dispatch, *centrum.Dispatch]
- func (s *State) FilterDispatches(ctx context.Context, job string, statuses []centrum.StatusDispatch, ...) []*centrum.Dispatch
- func (s *State) FilterUnits(ctx context.Context, job string, statuses []centrum.StatusUnit, ...) []*centrum.Unit
- func (s *State) GetDispatch(ctx context.Context, job string, id uint64) (*centrum.Dispatch, error)
- func (s *State) GetDispatchLocations(job string) *coords.Coords[*centrum.Dispatch]
- func (s *State) GetDisponents(ctx context.Context, job string) ([]*users.UserShort, error)
- func (s *State) GetSettings(ctx context.Context, job string) *centrum.Settings
- func (s *State) GetUnit(ctx context.Context, job string, id uint64) (*centrum.Unit, error)
- func (s *State) GetUserUnitID(ctx context.Context, userId int32) (uint64, bool)
- func (s *State) ListDispatches(ctx context.Context, job string) ([]*centrum.Dispatch, bool)
- func (s *State) ListSettings(ctx context.Context) []*centrum.Settings
- func (s *State) ListUnits(ctx context.Context, job string) ([]*centrum.Unit, bool)
- func (s *State) SetUnitForUser(ctx context.Context, job string, userId int32, unitId uint64) error
- func (s *State) UnitsStore() *store.Store[centrum.Unit, *centrum.Unit]
- func (s *State) UnsetUnitIDForUser(ctx context.Context, userId int32) error
- func (s *State) UpdateDispatch(ctx context.Context, job string, id uint64, dsp *centrum.Dispatch) error
- func (s *State) UpdateDispatchStatus(ctx context.Context, job string, id uint64, status *centrum.DispatchStatus) error
- func (s *State) UpdateDispatchUnits(ctx context.Context, job string, id uint64, ...) error
- func (s *State) UpdateDisponents(ctx context.Context, job string, disponents []*users.UserShort) error
- func (s *State) UpdateSettings(ctx context.Context, job string, in *centrum.Settings) error
- func (s *State) UpdateUnit(ctx context.Context, job string, id uint64, unit *centrum.Unit) error
- func (s *State) UpdateUnitStatus(ctx context.Context, job string, id uint64, status *centrum.UnitStatus) error
- func (s *State) UpdateUnitUsers(ctx context.Context, job string, id uint64, users []*centrum.UnitAssignment) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) CreateDispatch ¶ added in v0.8.20
func (*State) DeleteDispatch ¶ added in v0.8.11
func (*State) DeleteUnit ¶ added in v0.8.11
func (*State) DispatchesStore ¶ added in v0.8.13
func (*State) FilterDispatches ¶ added in v0.8.9
func (s *State) FilterDispatches(ctx context.Context, job string, statuses []centrum.StatusDispatch, notStatuses []centrum.StatusDispatch) []*centrum.Dispatch
func (*State) FilterUnits ¶ added in v0.8.10
func (*State) GetDispatch ¶ added in v0.8.8
func (*State) GetDispatchLocations ¶ added in v0.8.11
func (*State) GetDisponents ¶ added in v0.8.8
func (*State) GetSettings ¶ added in v0.8.8
func (*State) GetUserUnitID ¶ added in v0.8.11
func (*State) ListDispatches ¶ added in v0.8.8
func (*State) ListSettings ¶ added in v0.8.11
func (*State) SetUnitForUser ¶ added in v0.8.11
func (*State) UnitsStore ¶ added in v0.8.13
func (*State) UnsetUnitIDForUser ¶ added in v0.8.11
func (*State) UpdateDispatch ¶ added in v0.8.11
func (*State) UpdateDispatchStatus ¶ added in v0.8.13
func (*State) UpdateDispatchUnits ¶ added in v0.8.13
func (*State) UpdateDisponents ¶ added in v0.8.11
func (*State) UpdateSettings ¶ added in v0.8.11
func (*State) UpdateUnit ¶ added in v0.8.11
func (*State) UpdateUnitStatus ¶ added in v0.8.13
func (*State) UpdateUnitUsers ¶ added in v0.8.13
Click to show internal directories.
Click to hide internal directories.