ui

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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