package
Version:
v0.0.0-...-56beac2
Opens a new window with list of versions in this module.
Published: Sep 9, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Game struct {
ID string `json:"id"`
Name string `json:"name"`
Data string `json:"data"`
}
type Leaderboard struct {
ID int `json:"id"`
UID string `json:"uid"`
GID string `json:"gid"`
Name string `json:"name"`
Value1Order int8 `json:"v1_order"`
Value2Order int8 `json:"v2_order"`
Value3Order int8 `json:"v3_order"`
}
type LeaderboardData struct {
Name string `json:"name"`
Value1 int `json:"value1"`
Value2 int `json:"value2"`
Value3 int `json:"value3"`
}
type LeaderboardDataRepository interface {
GetByUID(ctx context.Context, uid string, offset int, count int) ([]LeaderboardData, error)
GetPlayerPosition(ctx context.Context, lid string, pid string) (int, error)
Insert(ctx context.Context, lid string, pid string, v1 int, v2 int, v3 int) error
}
type Player struct {
ID int `json:"-"`
UID string `json:"uid"`
Name string `json:"-"`
Banned bool `json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.