dashboard

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

View Source
const (
	MaxTransactionsForAddressResults = 100
	MaxApproversResults              = 100
	MaxTagResults                    = 100
	MaxBundleResults                 = 100
)
View Source
const (
	// MsgTypeNodeStatus is the type of the NodeStatus message.
	MsgTypeNodeStatus byte = iota
	// MsgTypeTPSMetric is the type of the transactions per second (TPS) metric message.
	MsgTypeTPSMetric
	// MsgTypeTipSelMetric is the type of the TipSelMetric message.
	MsgTypeTipSelMetric
	// MsgTypeTx is the type of the zero value Tx message.
	MsgTypeTxZeroValue
	// MsgTypeTx is the type of the value Tx message.
	MsgTypeTxValue
	// MsgTypeMs is the type of the Ms message.
	MsgTypeMs
	// MsgTypePeerMetric is the type of the PeerMetric message.
	MsgTypePeerMetric
	// MsgTypeConfirmedMsMetrics is the type of the ConfirmedMsMetrics message.
	MsgTypeConfirmedMsMetrics
	// MsgTypeVertex is the type of the Vertex message for the visualizer.
	MsgTypeVertex
	// MsgTypeSolidInfo is the type of the SolidInfo message for the visualizer.
	MsgTypeSolidInfo
	// MsgTypeConfirmedInfo is the type of the ConfirmedInfo message for the visualizer.
	MsgTypeConfirmedInfo
	// MsgTypeMilestoneInfo is the type of the MilestoneInfo message for the visualizer.
	MsgTypeMilestoneInfo
	// MsgTypeTipInfo is the type of the TipInfo message for the visualizer.
	MsgTypeTipInfo
	// MsgTypeDatabaseSizeMetric is the type of the database Size message for the metrics.
	MsgTypeDatabaseSizeMetric
	// MsgTypeDatabaseCleanupEvent is the type of the database cleanup message for the metrics.
	MsgTypeDatabaseCleanupEvent
	// MsgTypeSpamMetrics is the type of the SpamMetric message.
	MsgTypeSpamMetrics
	// MsgTypeAvgSpamMetrics is the type of the AvgSpamMetric message.
	MsgTypeAvgSpamMetrics
)
View Source
const (
	WebsocketCmdRegister   = 0
	WebsocketCmdUnregister = 1
)
View Source
const (
	VisualizerIdLength = 7
)

Variables

View Source
var (
	// ErrInvalidParameter defines the invalid parameter error.
	ErrInvalidParameter = errors.New("invalid parameter")

	// ErrInternalError defines the internal error.
	ErrInternalError = errors.New("internal error")

	// ErrNotFound defines the not found error.
	ErrNotFound = errors.New("not found")

	// ErrForbidden defines the forbidden error.
	ErrForbidden = errors.New("forbidden")
)
View Source
var (
	PLUGIN = node.NewPlugin("Dashboard", node.Enabled, configure, run)
)

Functions

This section is empty.

Types

type ExplorerAddress

type ExplorerAddress struct {
	Balance      uint64        `json:"balance"`
	Txs          []*ExplorerTx `json:"txs"`
	Spent        bool          `json:"spent"`
	SpentEnabled bool          `json:"spent_enabled"`
}

type ExplorerTag

type ExplorerTag struct {
	Txs []*ExplorerTx `json:"txs"`
}

type ExplorerTx

type ExplorerTx struct {
	Hash                          trinary.Hash   `json:"hash"`
	SignatureMessageFragment      trinary.Trytes `json:"signature_message_fragment"`
	Address                       trinary.Hash   `json:"address"`
	Value                         int64          `json:"value"`
	ObsoleteTag                   trinary.Trytes `json:"obsolete_tag"`
	Timestamp                     uint64         `json:"timestamp"`
	CurrentIndex                  uint64         `json:"current_index"`
	LastIndex                     uint64         `json:"last_index"`
	Bundle                        trinary.Hash   `json:"bundle"`
	Trunk                         trinary.Hash   `json:"trunk"`
	Branch                        trinary.Hash   `json:"branch"`
	Tag                           trinary.Trytes `json:"tag"`
	Nonce                         trinary.Trytes `json:"nonce"`
	AttachmentTimestamp           int64          `json:"attachment_timestamp"`
	AttachmentTimestampLowerBound int64          `json:"attachment_timestamp_lower_bound"`
	AttachmentTimestampUpperBound int64          `json:"attachment_timestamp_upper_bound"`
	Confirmed                     struct {
		State       bool            `json:"state"`
		Conflicting bool            `json:"conflicting"`
		Milestone   milestone.Index `json:"milestone_index"`
	} `json:"confirmed"`
	Approvers      []string        `json:"approvers"`
	Solid          bool            `json:"solid"`
	MWM            int             `json:"mwm"`
	Previous       trinary.Hash    `json:"previous"`
	Next           trinary.Hash    `json:"next"`
	BundleComplete bool            `json:"bundle_complete"`
	IsMilestone    bool            `json:"is_milestone"`
	MilestoneIndex milestone.Index `json:"milestone_index"`
}

type SearchResult

type SearchResult struct {
	Tx        *ExplorerTx      `json:"tx"`
	Tag       *ExplorerTag     `json:"tag"`
	Address   *ExplorerAddress `json:"address"`
	Bundles   [][]*ExplorerTx  `json:"bundles"`
	Milestone *ExplorerTx      `json:"milestone"`
}

Directories

Path Synopsis
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.

Jump to

Keyboard shortcuts

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