router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Variables

This section is empty.

Functions

func Recoverer

func Recoverer(next http.Handler) http.Handler

func SetupRouter

func SetupRouter()

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type ServerResponse

type ServerResponse struct {
	Name         string `json:"server"`
	PlayerRecord int32  `json:"player_record"`
	Timestamp    int64  `json:"timestamp"`
}

type VersionResponse

type VersionResponse struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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