Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTTPBackend type HTTPBackend = BackendType("http") // WebsocketBackend type WebsocketBackend = BackendType("websocket") )
Variables ¶
This section is empty.
Functions ¶
func RunServerWithConfig ¶
func RunServerWithConfig(config Configuration)
RunServerWithConfig runs the gochess server with a custom config
Types ¶
type Configuration ¶
type Configuration struct { ServiceName string Environment string BackendType BackendType BasePath string EnableBotMatching bool EngineConnectionTimeout string EngineAddr string GatewayPort int HTTPPort int WSPort int MaxMatchingDuration string MatchPlayerTimeSeconds int LogFile string EnableTracing bool Quiet bool }
Configuration is a struct that configures the chess server
Click to show internal directories.
Click to hide internal directories.