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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "Dashboard"

Variables

View Source
var (
	Server = echo.New()
)

Functions

func Init

func Init() *node.Plugin

func MakeTemplate

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

Types

type BaseTemplateParams

type BaseTemplateParams struct {
	NavPages    []NavPage
	ActivePage  string
	MyNetworkId string
}

func BaseParams

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

type ConfigTemplateParams

type ConfigTemplateParams struct {
	BaseTemplateParams
	Configuration map[string]interface{}
}
type NavPage interface {
	Title() string
	Href() string

	AddTemplates(renderer Renderer)
	AddEndpoints(e *echo.Echo)
}

type PeeringTemplateParams

type PeeringTemplateParams struct {
	BaseTemplateParams
	Status *peering.Status
}

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 ScListTemplateParams

type ScListTemplateParams struct {
	BaseTemplateParams
	SmartContracts []*SmartContractOverview
}

type ScTemplateParams

type ScTemplateParams struct {
	BaseTemplateParams
	Address       *address.Address
	BootupRecord  *registry.BootupData
	State         state.VirtualState
	Batch         state.Batch
	ProgramHash   *hashing.HashValue
	Description   string
	MinimumReward int64
	Committee     *committees.CommittteeStatus
}

type SmartContractOverview

type SmartContractOverview struct {
	BootupRecord *registry.BootupData
	Description  string
}

Jump to

Keyboard shortcuts

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