1
2
3 package server
4
5 import (
6 "time"
7
8 "code.rocket9labs.com/tslocum/bgammon"
9 )
10
11 func connectDB(dataSource string) error {
12 return nil
13 }
14
15 func testDBConnection() error {
16 return nil
17 }
18
19 func initDB() {
20 }
21
22 func registerAccount(passwordSalt string, a *account) error {
23 return nil
24 }
25
26 func resetAccount(mailServer string, resetSalt string, email []byte) error {
27 return nil
28 }
29
30 func confirmResetAccount(resetSalt string, passwordSalt string, id int, key string) (string, error) {
31 return "", nil
32 }
33
34 func accountByID(id int) (*account, error) {
35 return nil, nil
36 }
37
38 func accountByUsername(username string) (*account, error) {
39 return nil, nil
40 }
41
42 func loginAccount(passwordSalt string, username []byte, password []byte) (*account, error) {
43 return nil, nil
44 }
45
46 func setAccountPassword(passwordSalt string, id int, password string) error {
47 return nil
48 }
49
50 func setAccountSetting(id int, name string, value int) error {
51 return nil
52 }
53
54 func matchInfo(id int) (timestamp int64, player1 string, player2 string, replay []byte, err error) {
55 return 0, "", "", nil, nil
56 }
57
58 func replayByID(id int) ([]byte, error) {
59 return nil, nil
60 }
61
62 func recordGameResult(g *serverGame, winType int8, replay [][]byte) error {
63 return nil
64 }
65
66 func recordMatchResult(g *serverGame, matchType int) error {
67 return nil
68 }
69
70 func matchHistory(username string) ([]*bgammon.HistoryMatch, error) {
71 return nil, nil
72 }
73
74 func getLeaderboard(matchType int, variant int8, multiPoint bool) (*leaderboardResult, error) {
75 return nil, nil
76 }
77
78 func dailyStats(tz *time.Location) (*serverStatsResult, error) {
79 return &serverStatsResult{}, nil
80 }
81
82 func cumulativeStats(tz *time.Location) (*serverStatsResult, error) {
83 return &serverStatsResult{}, nil
84 }
85
86 func botStats(name string, tz *time.Location) (*botStatsResult, error) {
87 return &botStatsResult{}, nil
88 }
89
View as plain text