api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger added in v0.5.0

func Logger() gin.HandlerFunc

func RegisterRouter

func RegisterRouter(r *gin.Engine)

Types

type BroadcastRequest

type BroadcastRequest struct {
	Message string `json:"message"`
}

type EmptyResponse

type EmptyResponse struct{}

type ErrorResponse

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

type From

type From string
const (
	FromRcon From = "rcon"
	FromSav  From = "sav"
)

type LoginInfo

type LoginInfo struct {
	Password string `json:"password"`
}

type MessageResponse added in v0.5.6

type MessageResponse struct {
	Message string `json:"message"`
}

type PlayerOrderBy

type PlayerOrderBy string
const (
	OrderByLastOnline PlayerOrderBy = "last_online"
	OrderByLevel      PlayerOrderBy = "level"
)

type SendRconCommandRequest added in v0.5.6

type SendRconCommandRequest struct {
	UUID    string `json:"uuid"`
	Content string `json:"content"`
}

type ServerInfo

type ServerInfo struct {
	Version string `json:"version"`
	Name    string `json:"name"`
}

type ServerToolResponse added in v0.6.0

type ServerToolResponse struct {
	Version string `json:"version"`
	Latest  string `json:"latest"`
}

type ShutdownRequest

type ShutdownRequest struct {
	Seconds int    `json:"seconds"`
	Message string `json:"message"`
}

type SuccessResponse

type SuccessResponse struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

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