api

package
v0.0.0-...-475d4c2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 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 Handler

type Handler struct{}

func NewHandler

func NewHandler() *Handler

func (*Handler) SolveHandler

func (h *Handler) SolveHandler(w http.ResponseWriter, r *http.Request)

type PuzzleFetcher

type PuzzleFetcher struct {
	Difficulty string
}

func NewPuzzleFetcher

func NewPuzzleFetcher() *PuzzleFetcher

func (*PuzzleFetcher) FetchPuzzle

func (f *PuzzleFetcher) FetchPuzzle() (pkg.Grid, error)

func (*PuzzleFetcher) SetDifficulty

func (f *PuzzleFetcher) SetDifficulty(difficulty string)

type SolveResponse

type SolveResponse struct {
	Grid  [81]int `json:"Grid"`
	Error string  `json:"Error,omitempty"`
}

Jump to

Keyboard shortcuts

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