Documentation
¶
Index ¶
- type ErrorUnMarshalRead
- type Member
- type Rank
- func (r *Rank) Add(key string, scores ...int64) *Rank
- func (r *Rank) Del(key string) *Rank
- func (r *Rank) Get(rankSection ...int) []Member
- func (r *Rank) GetByKey(key string) (int, Member)
- func (r *Rank) GetByScore(floorScores, roofScores []int64) []Member
- func (r *Rank) Len() int
- func (r *Rank) Marshal() []byte
- func (r *Rank) UnMarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorUnMarshalRead ¶
type ErrorUnMarshalRead struct {
// contains filtered or unexported fields
}
func (ErrorUnMarshalRead) Error ¶
func (s ErrorUnMarshalRead) Error() string
type Rank ¶
type Rank struct {
// contains filtered or unexported fields
}
func (*Rank) GetByScore ¶
GetByScore scoreSection 分数区间 Rank.GetByScore([]int64{100},[]int64{900}) 获得分数为100~999区间的集合
Click to show internal directories.
Click to hide internal directories.