server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipVersion added in v0.1.3

func SkipVersion(v string)

SkipVersion records a version the user chose to skip, suppressing future notices for it.

func Start

func Start(root, version string, viaPkg bool, ln net.Listener, assets embed.FS) error

Start serves the editor using an already-open listener. root is the working directory for the editor (used by API handlers registered in later tasks). assets is an embedded FS rooted at the "static" directory. The caller is responsible for printing the listening address after Start returns successfully.

Types

type UpdateInfo added in v0.1.3

type UpdateInfo struct {
	Current   string `json:"current"`
	Latest    string `json:"latest"`
	Available bool   `json:"available"`
	ViaPkg    bool   `json:"viaPkg"`
}

UpdateInfo is the result of an update check, returned to callers and the API.

func CheckForUpdate added in v0.1.3

func CheckForUpdate(current string, viaPkg bool) UpdateInfo

CheckForUpdate reports whether a newer release than current is available. It caches the GitHub result for checkInterval to avoid hammering the API. Returns Available=false for dev builds, when offline, or when up to date.

Jump to

Keyboard shortcuts

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