chessserver

package
v0.0.0-...-641a42a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// HTTPBackend type
	HTTPBackend = BackendType("http")
	// WebsocketBackend type
	WebsocketBackend = BackendType("websocket")
)

Variables

This section is empty.

Functions

func RunServer

func RunServer()

RunServer runs the gochess server

func RunServerWithConfig

func RunServerWithConfig(config Configuration)

RunServerWithConfig runs the gochess server with a custom config

Types

type BackendType

type BackendType string

BackendType represents different types of backends

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL