maintenance

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(conf Configuration, registry confRegistry.Registry)

Run renders the maintenance page and watches for changes

Types

type Configuration

type Configuration struct {
	Source   Source
	Target   string
	Template string
	Default  PageModel
}

Configuration for the maintenance modul

type PageModel

type PageModel struct {
	Title string `json:"title"`
	Text  string `json:"text"`
}

PageModel is the input to render the maintenance page template

func (PageModel) String

func (p PageModel) String() string

type Source

type Source struct {
	Path string
}

Source of maintenance path in etcd

Jump to

Keyboard shortcuts

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