server

package
v0.0.0-...-c916a4f Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr   string
	Debug  bool
	Logger *zap.Logger
}

Config stores the configuration for the server.

type Server

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

Server manages access to the game and hosts the front-end.

func New

func New(cfg *Config) (*Server, error)

New creates a new server instance.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

Jump to

Keyboard shortcuts

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