92 lines
1.9 KiB
Go
92 lines
1.9 KiB
Go
//go:build !database
|
|
|
|
package server
|
|
|
|
import (
|
|
"time"
|
|
|
|
"code.rocket9labs.com/tslocum/bgammon"
|
|
)
|
|
|
|
func connectDB(dataSource string) error {
|
|
return nil
|
|
}
|
|
|
|
func testDBConnection() error {
|
|
return nil
|
|
}
|
|
|
|
func initDB() {
|
|
}
|
|
|
|
func registerAccount(passwordSalt string, a *account) error {
|
|
return nil
|
|
}
|
|
|
|
func resetAccount(mailServer string, resetSalt string, email []byte) error {
|
|
return nil
|
|
}
|
|
|
|
func confirmResetAccount(resetSalt string, passwordSalt string, id int, key string) (string, error) {
|
|
return "", nil
|
|
}
|
|
|
|
func accountByID(id int) (*account, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func accountByUsername(username string) (*account, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func loginAccount(passwordSalt string, username []byte, password []byte) (*account, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func setAccountPassword(passwordSalt string, id int, password string) error {
|
|
return nil
|
|
}
|
|
|
|
func setAccountSetting(id int, name string, value int) error {
|
|
return nil
|
|
}
|
|
|
|
func matchInfo(id int) (timestamp int64, player1 string, player2 string, replay []byte, err error) {
|
|
return 0, "", "", nil, nil
|
|
}
|
|
|
|
func replayByID(id int) ([]byte, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func recordGameResult(g *serverGame, winType int8, replay [][]byte) error {
|
|
return nil
|
|
}
|
|
|
|
func recordMatchResult(g *serverGame, matchType int) error {
|
|
return nil
|
|
}
|
|
|
|
func matchHistory(username string) ([]*bgammon.HistoryMatch, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func getLeaderboard(matchType int, variant int8, multiPoint bool) (*leaderboardResult, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func dailyStats(tz *time.Location) (*serverStatsResult, error) {
|
|
return &serverStatsResult{}, nil
|
|
}
|
|
|
|
func monthlyStats(tz *time.Location) (*serverStatsResult, error) {
|
|
return &serverStatsResult{}, nil
|
|
}
|
|
|
|
func cumulativeStats(tz *time.Location) (*serverStatsResult, error) {
|
|
return &serverStatsResult{}, nil
|
|
}
|
|
|
|
func botStats(name string, tz *time.Location) (*botStatsResult, error) {
|
|
return &botStatsResult{}, nil
|
|
}
|