server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core interface {
	ApplyState(state map[int]int) (map[int]int, error)
	SetupOne(gameId, botsNumber int) (map[int]int, error)
	ReadState() map[int]int
}

type Secure

type Secure interface {
	VerifyToken(token string) bool
}

type Server

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

func NewServer

func NewServer(ctx context.Context, cfg config.Server, appInfo string,
	core Core, sec Secure) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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