Documentation
¶
Index ¶
- Variables
- type State
- func (s *State) ClearUnitLock(unitId uint64)
- func (s *State) DeleteDispatch(job string, id uint64)
- func (s *State) DeleteUnit(job string, id uint64)
- func (s *State) FilterDispatches(job string, statuses []dispatch.StatusDispatch, ...) []*dispatch.Dispatch
- func (s *State) FilterUnits(job string, statuses []dispatch.StatusUnit, notStatuses []dispatch.StatusUnit) []*dispatch.Unit
- func (s *State) GetDispatch(job string, id uint64) (*dispatch.Dispatch, bool)
- func (s *State) GetDispatchLocations(job string) *coords.Coords[*dispatch.Dispatch]
- func (s *State) GetDispatchesJobs() []string
- func (s *State) GetDispatchesMap(job string) *xsync.MapOf[uint64, *dispatch.Dispatch]
- func (s *State) GetDisponents(job string) []*users.UserShort
- func (s *State) GetSettings(job string) *dispatch.Settings
- func (s *State) GetUnit(job string, id uint64) (*dispatch.Unit, bool)
- func (s *State) GetUnitIDForUserID(userId int32) (uint64, bool)
- func (s *State) GetUnitLock(unitId uint64) *sync.Mutex
- func (s *State) GetUnitsJobs() []string
- func (s *State) GetUnitsMap(job string) *xsync.MapOf[uint64, *dispatch.Unit]
- func (s *State) GetUserUnitID(userId int32) (uint64, bool)
- func (s *State) ListDispatches(job string) []*dispatch.Dispatch
- func (s *State) ListSettings() []*dispatch.Settings
- func (s *State) ListUnits(job string) ([]*dispatch.Unit, bool)
- func (s *State) SetUnitForUser(userId int32, unitId uint64)
- func (s *State) UnsetUnitIDForUser(userId int32)
- func (s *State) UpdateDispatch(job string, dispatchId uint64, dsp *dispatch.Dispatch) error
- func (s *State) UpdateDisponents(job string, disponents []*users.UserShort)
- func (s *State) UpdateSettings(job string, in *dispatch.Settings) error
- func (s *State) UpdateUnit(job string, unitId uint64, unit *dispatch.Unit) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) ClearUnitLock ¶ added in v0.8.11
func (*State) DeleteDispatch ¶ added in v0.8.11
func (*State) DeleteUnit ¶ added in v0.8.11
func (*State) FilterDispatches ¶ added in v0.8.9
func (s *State) FilterDispatches(job string, statuses []dispatch.StatusDispatch, notStatuses []dispatch.StatusDispatch) []*dispatch.Dispatch
func (*State) FilterUnits ¶ added in v0.8.10
func (s *State) FilterUnits(job string, statuses []dispatch.StatusUnit, notStatuses []dispatch.StatusUnit) []*dispatch.Unit
func (*State) GetDispatch ¶ added in v0.8.8
func (*State) GetDispatchLocations ¶ added in v0.8.11
func (*State) GetDispatchesJobs ¶ added in v0.8.11
func (*State) GetDispatchesMap ¶ added in v0.8.8
func (*State) GetDisponents ¶ added in v0.8.8
func (*State) GetSettings ¶ added in v0.8.8
func (*State) GetUnitIDForUserID ¶ added in v0.8.8
func (*State) GetUnitsJobs ¶ added in v0.8.11
func (*State) GetUnitsMap ¶ 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) UnsetUnitIDForUser ¶ added in v0.8.11
func (*State) UpdateDispatch ¶ added in v0.8.11
func (*State) UpdateDisponents ¶ added in v0.8.11
func (*State) UpdateSettings ¶ added in v0.8.11
Click to show internal directories.
Click to hide internal directories.