ui

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(currentVersion string) error

Start starts the HTTP server on listenAddr.

Types

type DNSStatus

type DNSStatus struct {
	OK  bool   `json:"ok"`
	TLD string `json:"tld"`
}

type PHPStatus

type PHPStatus struct {
	Version string `json:"version"`
	Running bool   `json:"running"`
}

type ServiceCheck

type ServiceCheck struct {
	Running bool `json:"running"`
}

type ServiceResponse

type ServiceResponse struct {
	Name    string            `json:"name"`
	Status  string            `json:"status"`
	EnvVars map[string]string `json:"env_vars"`
}

ServiceResponse is the response for GET /api/services.

type SiteResponse

type SiteResponse struct {
	Domain      string `json:"domain"`
	Path        string `json:"path"`
	PHPVersion  string `json:"php_version"`
	NodeVersion string `json:"node_version"`
	TLS         bool   `json:"tls"`
	FPMRunning  bool   `json:"fpm_running"`
}

SiteResponse is the response for GET /api/sites.

type StatusResponse

type StatusResponse struct {
	DNS     DNSStatus    `json:"dns"`
	Nginx   ServiceCheck `json:"nginx"`
	PHPFPMs []PHPStatus  `json:"php_fpms"`
}

StatusResponse is the response for GET /api/status.

type UpdateResponse

type UpdateResponse struct {
	OK     bool   `json:"ok"`
	Output string `json:"output"`
}

UpdateResponse is the response for POST /api/update.

type VersionResponse

type VersionResponse struct {
	Current   string `json:"current"`
	Latest    string `json:"latest"`
	HasUpdate bool   `json:"has_update"`
}

VersionResponse is the response for GET /api/version.

Jump to

Keyboard shortcuts

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