Documentation ¶
Index ¶
- Variables
- type SafeJudgeQueue
- func (s *SafeJudgeQueue) Clean()
- func (s *SafeJudgeQueue) Del(instance string)
- func (s *SafeJudgeQueue) Exists(instance string) bool
- func (s *SafeJudgeQueue) Get(instance string) (*list.SafeListLimited, bool)
- func (s *SafeJudgeQueue) GetAll() map[string]*list.SafeListLimited
- func (s *SafeJudgeQueue) Set(instance string, q *list.SafeListLimited)
- func (s *SafeJudgeQueue) UpdateTS(instance string)
- type SafeStraMap
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StraMap = &SafeStraMap{M: make(map[string]map[string][]*model.Stra)}
)
Functions ¶
This section is empty.
Types ¶
type SafeJudgeQueue ¶
type SafeJudgeQueue struct { sync.RWMutex Data map[string]*list.SafeListLimited Ts map[string]int64 }
func NewJudgeQueue ¶
func NewJudgeQueue() SafeJudgeQueue
func (*SafeJudgeQueue) Clean ¶
func (s *SafeJudgeQueue) Clean()
func (*SafeJudgeQueue) Del ¶
func (s *SafeJudgeQueue) Del(instance string)
func (*SafeJudgeQueue) Exists ¶
func (s *SafeJudgeQueue) Exists(instance string) bool
func (*SafeJudgeQueue) Get ¶
func (s *SafeJudgeQueue) Get(instance string) (*list.SafeListLimited, bool)
func (*SafeJudgeQueue) GetAll ¶
func (s *SafeJudgeQueue) GetAll() map[string]*list.SafeListLimited
func (*SafeJudgeQueue) Set ¶
func (s *SafeJudgeQueue) Set(instance string, q *list.SafeListLimited)
func (*SafeJudgeQueue) UpdateTS ¶
func (s *SafeJudgeQueue) UpdateTS(instance string)
type SafeStraMap ¶
func (*SafeStraMap) GetAll ¶
func (this *SafeStraMap) GetAll() []*model.Stra
Click to show internal directories.
Click to hide internal directories.