Documentation
¶
Index ¶
- Variables
- type State
- func (s *State) GetDispatch(job string, id uint64) (*dispatch.Dispatch, bool)
- 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) GetUnitsMap(job string) *xsync.MapOf[uint64, *dispatch.Unit]
- func (s *State) ListDispatches(job string) []*dispatch.Dispatch
- func (s *State) ListUnits(job string) ([]*dispatch.Unit, bool)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { Settings *xsync.MapOf[string, *dispatch.Settings] Disponents *xsync.MapOf[string, []*users.UserShort] Units *xsync.MapOf[string, *xsync.MapOf[uint64, *dispatch.Unit]] Dispatches *xsync.MapOf[string, *xsync.MapOf[uint64, *dispatch.Dispatch]] UserIDToUnitID *xsync.MapOf[int32, uint64] }
func (*State) GetDispatch ¶ added in v0.8.8
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) GetUnitsMap ¶ added in v0.8.8
func (*State) ListDispatches ¶ added in v0.8.8
Click to show internal directories.
Click to hide internal directories.