archipelago

package
v0.0.0-...-2379a7f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 10 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 the main entry point to the game server.

func New

func New(log *logrus.Logger, skipWSOriginCheck bool) (*Server, error)

New returns a new Server using the provided logger. skipWSOriginCheck controls if websocket origin checking is disabled.

func (*Server) Run

func (srv *Server) Run(ctx context.Context) error

Run starts the game server and blocks until an error occurs, or the context is canceled. Run always returns a non-nil error.

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP dispatches HTTP requests.

Directories

Path Synopsis
ai
msg

Jump to

Keyboard shortcuts

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