explorer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 12 Imported by: 1 module, 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

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