server

package
v0.0.0-...-6520ade Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartControlServer

func StartControlServer(config *ini.File, mm *Matchmaker)

StartControlServer begins handling HTTP requests for the REST API, called by main function

Types

type Lobby

type Lobby struct {
	ID           uint64
	Name         string
	HostUsername string
	Password     string
}

Lobby represents a lobby hosted by a user on the proxy server.

type Matchmaker

type Matchmaker struct {
	// contains filtered or unexported fields
}

Matchmaker holds the current users logged in and their status

type User

type User struct {
	Address     net.Addr
	Username    string
	Linkedto    uint64
	Hosting     uint64
	LastTokenAt time.Time
}

User represents a logged in user to the proxy server. Contains info if they are hosting a game or linked to a game or neither

Jump to

Keyboard shortcuts

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