dashboard

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const TplInstallConfig = `` /* 823-byte string literal not displayed */
View Source
const TplSCInfo = `` /* 1254-byte string literal not displayed */
View Source
const TplWs = `` /* 587-byte string literal not displayed */

Variables

This section is empty.

Functions

func MakeTemplate

func MakeTemplate(parts ...string) *template.Template

func StartServer

func StartServer(listenAddr string, scs []SCDashboard)

Types

type BaseTemplateParams

type BaseTemplateParams struct {
	NavPages   []NavPage
	ActivePage string
}

func BaseParams

func BaseParams(c echo.Context, page string) BaseTemplateParams

type IndexTemplateParams

type IndexTemplateParams struct {
	BaseTemplateParams
}
type NavPage struct {
	Title string
	Href  string
}

type Renderer

type Renderer map[string]*template.Template

func (Renderer) Render

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

type SCDashboard

type SCDashboard interface {
	Config() *sc.Config
	AddEndpoints(e *echo.Echo)
	AddTemplates(r Renderer)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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