Back to

Package ui

Latest Go to latest

The latest major version is .

Published: Jun 26, 2020 | License: Apache-2.0 | Module:


type Handler

type Handler struct {
	Service  *service.Service
	Services map[string][]util.Service

Handler holds all objects and configurations used across Web-UI requests

func New

func New() *Handler

func (*Handler) ErrorHandler

func (h *Handler) ErrorHandler(err error, c echo.Context)

func (*Handler) RegisterRenderer

func (h *Handler) RegisterRenderer(e *echo.Echo)

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(e *echo.Echo)

func (*Handler) ServiceHandler

func (h *Handler) ServiceHandler(c echo.Context) error

func (*Handler) ServicesHandler

func (h *Handler) ServicesHandler(c echo.Context) error

type Page

type Page struct {
	Title       string
	Service     util.Service
	Services    map[string][]util.Service
	AllServices map[string][]util.Service
	Backup      service.Backup
	Backups     []service.Backup
	Error       struct {
		Code    int
		Message string
		Time    time.Time

type TemplateRenderer

type TemplateRenderer struct {
	// contains filtered or unexported fields

func (*TemplateRenderer) Render

func (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier