Documentation
¶
Index ¶
Constants ¶
View Source
const ( MYSQL_DRIVER = "mysql" MYSQL_USER = "tictactoe_agent" MYSQL_PASSWORD = "^kwE*!QYSVExA$A*nCvfqcmAhv&m5cqb992" MYSQL_DB_NAME = "tictactoe_archives" MYSQL_HOST = "localhost:3306" )
View Source
const ( REDIS_HOST string = "127.0.0.1" //Address of the Redis server REDIS_PORT int = 6379 //Port of the Redis server REDIS_MAX_CONNECTIONS int = 12000 //Max number of simultaneous connections allowed to the Redis server REDIS_DATABASE int = 2 //Database to connect to. )
View Source
const (
TICTACTOE_ID int = 24
)
Variables ¶
View Source
var ArchivesInitialized = false
ArchivesInitialized is true if a pool of connections to the archives has been initialized at least once.
View Source
var ArchivesPool *sql.DB
ArchivesPool is a pool of connections to the archive of the system (in this case using MySQL).
View Source
var CacheInitialized = false
CacheInitialized is true if the Pool has been initialized at least one time.
View Source
var CachePool *redis.Pool
CachePool represents the pool which connects to the cache (using Redis).
Functions ¶
func InitArchives ¶
func InitArchives() error
InitArchives links the archives with the system with the global options.
func InitArchivesWithAuth ¶
InitArchivesWithAuth Creates a MySQL communication point for the API for the Data.
func InitGameServer ¶
InitGameServer creates the game server and binds it to the current structure NOTE : this is a prototypical approach. In real implementation the server will act
on its own docker container.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.