api

package
v0.0.0-...-f1b9d74 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

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

GetVersion is a 'GET /version' handler.

Types

type GetVersionResponse

type GetVersionResponse struct {
	ServerUUID  string `json:"server_uuid"`
	ServerBuild string `json:"server_build"`
	ServerTime  int64  `json:"server_time"`
	Title       string `json:"title"`
	Version     string `json:"version"`
}

GetVersionResponse defines response format for 'GET /version' request.

Jump to

Keyboard shortcuts

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