Documentation ¶
Index ¶
- func CheckObjectIsPlanet(db *sql.DB, id int64) (bool, error)
- func CloseDB(db *sql.DB)
- func ConnectDB(cfg mysql.Config) (*sql.DB, error)
- func ConnectDBWithRetries() *sql.DB
- func GetPLayerIdForUser(userId int64) (string, error)
- func GetPlanetIDs(db *sql.DB) (map[int64]struct{}, error)
- func GetPlayerOwnedShips(db *sql.DB, playerId string) (map[int64]struct{}, error)
- func GetUserPassword(db *sql.DB, username string) (int64, string, error)
- func InsertObject(db *sql.DB, x int64, y int64) (int64, error)
- func InsertUser(db *sql.DB, username string, password string) error
- func IsObjectOwnedByPlayer(db *sql.DB, playerId int64, objectId int64) (bool, error)
- func ProcessRename(db *sql.DB, id int64, name string) error
- func ReplaceAttackCommand(db *sql.DB, id int64, commandType string, target int64) error
- func ReplaceConstructCommand(db *sql.DB, id int64, commandType string, class int64) error
- func ReplaceDecommissionCommand(db *sql.DB, id int64, commandType string) error
- func ReplaceMoveCommand(db *sql.DB, id int64, commandType string, target int64) error
- func ReplaceRepairCommand(db *sql.DB, id int64, commandType string) error
- func ReplaceTradeCommand(db *sql.DB, id int64, commandType string, target int64, resource int64, ...) error
- func StopCommand(db *sql.DB, id int64) error
- func TestDB(db *sql.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDBWithRetries ¶
func GetPLayerIdForUser ¶
func GetPlayerOwnedShips ¶
func IsObjectOwnedByPlayer ¶
func ReplaceAttackCommand ¶
func ReplaceConstructCommand ¶
func ReplaceMoveCommand ¶
func ReplaceRepairCommand ¶
func ReplaceTradeCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.