Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByTimestamp ¶
type ByTimestamp []Star
func (ByTimestamp) Len ¶
func (s ByTimestamp) Len() int
func (ByTimestamp) Less ¶
func (s ByTimestamp) Less(i, j int) bool
func (ByTimestamp) Swap ¶
func (s ByTimestamp) Swap(i, j int)
type Leaderboard ¶
type Leaderboard struct { Members map[string]MemberInfo `json:"members"` OwnerId string `json:"owner_id"` Event string `json:"event"` }
func FetchLeaderboard ¶
func FetchLeaderboard(session string, leaderboardId string, year int) (*Leaderboard, error)
func LeaderboardFromJson ¶
func LeaderboardFromJson(leaderboard []byte) (*Leaderboard, error)
func (*Leaderboard) Stars ¶
func (l *Leaderboard) Stars() []Star
func (*Leaderboard) StarsByDay ¶
func (l *Leaderboard) StarsByDay(day int) []Star
func (*Leaderboard) StarsByMemberId ¶
func (l *Leaderboard) StarsByMemberId(id string) []Star
type MemberInfo ¶
Click to show internal directories.
Click to hide internal directories.