explorer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationInfo

type AttestationInfo struct {
	ShardBlockHash string
	Shard          uint64
	Slot           uint64
	JustifiedSlot  uint64
}

AttestationInfo is the info of an attestation used by the explorer.

type Explorer

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

Explorer is a blockchain explorer.

func NewExplorer

func NewExplorer(blockchainConn *grpc.ClientConn) *Explorer

NewExplorer creates a new block explorer

func (*Explorer) StartExplorer

func (ex *Explorer) StartExplorer() error

StartExplorer starts the block explorer

func (*Explorer) UpdateData

func (ex *Explorer) UpdateData() error

UpdateData updates the data if needed.

type IndexData

type IndexData struct {
	Slots []IndexSlotData
}

IndexData is the data used by the index page.

type IndexSlotData

type IndexSlotData struct {
	Slot      uint64
	Block     bool
	BlockHash string
	Proposer  uint32
	Rewards   int64
}

IndexSlotData is the slot data used by the index page.

type SlotInfo

type SlotInfo struct {
	Slot         uint64
	Proposer     uint64
	BlockHash    string
	Attestations []AttestationInfo
}

SlotInfo is the info of a slot used by the explorer.

type Template

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

Template is the template engine used by the explorer.

func (*Template) Render

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

Render renders the template.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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