server

package
v0.0.0-...-8d89a9b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardResponse

type BoardResponse struct {
	Status oware.GameStatus
	Player int
	Scores []int
	Pits   []int
}

type MovesResponse

type MovesResponse struct {
	Id     string
	Pit    int
	Reward int
}

type Server

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

func New

func New() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) GetBoardHandler

func (s *Server) GetBoardHandler(w http.ResponseWriter, r *http.Request)

func (*Server) GetMovesHandler

func (s *Server) GetMovesHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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