chessapi

package module
v0.0.0-...-77c5e5b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFigureTypeNotFound error = errors.New("figure type not found")

Functions

func RunHttpServer

func RunHttpServer() error

Types

type Handlers

type Handlers struct {
	ChessCalculator chesslib.ChessKingUnderDangerCalculator
}

func (*Handlers) IsKingUnderAttackHandler

func (Handlers *Handlers) IsKingUnderAttackHandler(w http.ResponseWriter, r *http.Request)

type RespIsKingUnderAttack

type RespIsKingUnderAttack struct {
	IsUnderAttack bool
	Error         string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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