dashboard

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0, BSD-2-Clause Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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