bootstrap

package
v0.0.0-...-6b96f8f Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a bootstrap server.

func NewServer

func NewServer(port, gsHost string, gameServers map[string]string, l zerolog.Logger) (s *Server, err error)

NewServer returns a bootstrap server configured to run on the given host and port.

The server will provide data for a gamestate to bootstrap and talk to the configured gamestate servers.

func (*Server) Close

func (s *Server) Close() error

Close closes the bootstrap server.

func (*Server) Serve

func (s *Server) Serve() error

Serve accepts incoming bootstrap connections.

Jump to

Keyboard shortcuts

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