handlers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplyStateHandler

func NewApplyStateHandler(app AppApplyState) http.HandlerFunc

func NewReadStateHandler

func NewReadStateHandler(app AppReadState) http.HandlerFunc

func OpenAPIHandler

func OpenAPIHandler(w http.ResponseWriter, r *http.Request)

func WelcomeHandler

func WelcomeHandler(w http.ResponseWriter, r *http.Request)

Types

type AppApplyState

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

type AppReadState

type AppReadState interface {
	ReadState() map[int]int
}

Jump to

Keyboard shortcuts

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