pages

package
v0.0.0-...-efdc0b2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseKeys

func CamelCaseKeys(result []map[string]interface{}) []map[string]interface{}

Types

type AnalyticsChartData

type AnalyticsChartData struct {
	Label string `json:"label"`
	Value int64  `json:"value"`
}

type AnalyticsPageView

type AnalyticsPageView struct {
	TotalBlocks       string
	TotalTransactions string
	TotalPlays        string
	TotalValidators   string

	ChartData []AnalyticsChartData
}

type BlockPageJSONResponse

type BlockPageJSONResponse struct {
	Height   string                   `json:"block_height"`
	Hash     string                   `json:"block_hash"`
	Proposer string                   `json:"proposer"`
	Txs      []map[string]interface{} `json:"transactions"`
}

type BlockView

type BlockView struct {
	Height    string
	Hash      string
	Proposer  string
	Timestamp time.Time
	Txs       [][]byte
}

type NodePageView

type NodePageView struct {
	Endpoint     string
	EthAddress   string
	CometAddress string
}

type NodesView

type NodesView struct {
	Nodes []db.CoreValidator
}

type OverviewPageView

type OverviewPageView struct {
	Blocks []BlockView
	Txs    []db.CoreTxResult
}

type Pages

type Pages struct {
	// contains filtered or unexported fields
}

func NewPages

func NewPages(config *config.Config, baseUrl string) *Pages

func (*Pages) AnalyticsHeaderHTML

func (p *Pages) AnalyticsHeaderHTML(TotalBlocks, TotalTransactions, TotalPlays, TotalManageEntities, TotalValidators string) templ.Component

func (*Pages) AnalyticsPageHTML

func (p *Pages) AnalyticsPageHTML(data *AnalyticsPageView) templ.Component

func (*Pages) BlockPageHTML

func (p *Pages) BlockPageHTML(view *BlockView) templ.Component

func (*Pages) BlockPageJSON

func (p *Pages) BlockPageJSON(data *BlockView) (*BlockPageJSONResponse, error)

func (*Pages) ContentPageHTML

func (p *Pages) ContentPageHTML() templ.Component

func (*Pages) ErrorPageHTML

func (p *Pages) ErrorPageHTML(errorID string) templ.Component

func (*Pages) GenesisHTML

func (p *Pages) GenesisHTML(genesis map[string]interface{}) templ.Component

func (*Pages) NodePageHTML

func (p *Pages) NodePageHTML(data *NodePageView) templ.Component

func (*Pages) NodesPageHTML

func (p *Pages) NodesPageHTML(data *NodesView) templ.Component

func (*Pages) OverviewPageHTML

func (p *Pages) OverviewPageHTML(data *OverviewPageView) templ.Component

func (*Pages) OverviewPageJSON

func (p *Pages) OverviewPageJSON()

func (*Pages) TxPageHTML

func (p *Pages) TxPageHTML(view *TxView) templ.Component

func (*Pages) TxPageJSON

func (p *Pages) TxPageJSON(data *TxView) (*TxPageJSONResponse, error)

func (*Pages) UptimePageHTML

func (c *Pages) UptimePageHTML(props *UptimePageView) templ.Component

type TxPageJSONResponse

type TxPageJSONResponse struct {
	Hash  string                 `json:"txhash"`
	Block string                 `json:"block_height"`
	Tx    map[string]interface{} `json:"tx"`
}

type TxView

type TxView struct {
	Hash      string
	Block     string
	Timestamp time.Time
	Tx        []byte
}

type UptimePageView

type UptimePageView struct {
	Rollup        db.SlaRollup
	Reports       []db.SlaNodeReport
	RecentRollups []db.SlaRollup
}

Jump to

Keyboard shortcuts

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