Documentation ¶
Overview ¶
You can use the "packr clean" command to clean up this, and any other packr generated files.
Index ¶
Constants ¶
View Source
const ( MsgTypeNodeStatus byte = iota MsgTypeTPSMetric MsgTypeTipSelMetric MsgTypeTx MsgTypeMs MsgTypePeerMetric MsgTypeConfirmedMsMetrics )
View Source
const (
BroadcastQueueSize = 1000
)
Variables ¶
View Source
var ErrForbidden = errors.New("forbidden")
View Source
var ErrInternalError = errors.New("internal error")
View Source
var ErrInvalidParameter = errors.New("invalid config")
View Source
var ErrNotFound = errors.New("not found")
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 Hash `json:"hash"` SignatureMessageFragment Trytes `json:"signature_message_fragment"` Address Hash `json:"address"` Value int64 `json:"value"` ObsoleteTag Trytes `json:"obsolete_tag"` Timestamp uint64 `json:"timestamp"` CurrentIndex uint64 `json:"current_index"` LastIndex uint64 `json:"last_index"` Bundle Hash `json:"bundle"` Trunk Hash `json:"trunk"` Branch Hash `json:"branch"` Tag Trytes `json:"tag"` Nonce 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"` Milestone milestone.Index `json:"milestone_index"` } `json:"confirmed"` Approvers []string `json:"approvers"` Solid bool `json:"solid"` MWM int `json:"mwm"` Previous Hash `json:"previous"` Next 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"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.