nodeconnmetrics

package
v0.5.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InOutput added in v0.3.7

type InOutput struct {
	OutputID iotago.OutputID
	Output   iotago.Output
}

type InStateOutput added in v0.3.7

type InStateOutput struct {
	OutputID iotago.OutputID
	Output   iotago.Output
}

type NodeConnectionMessageMetrics

type NodeConnectionMessageMetrics[T any] interface {
	IncL1Messages(T)
	GetL1MessagesTotal() uint32
	GetLastL1MessageTime() time.Time
	GetLastL1Message() T
}

type NodeConnectionMessagesMetrics

type NodeConnectionMessagesMetrics interface {
	GetOutPublishStateTransaction() NodeConnectionMessageMetrics[*StateTransaction]
	GetOutPublishGovernanceTransaction() NodeConnectionMessageMetrics[*iotago.Transaction]
	GetOutPullLatestOutput() NodeConnectionMessageMetrics[interface{}]
	GetOutPullTxInclusionState() NodeConnectionMessageMetrics[iotago.TransactionID]
	GetOutPullOutputByID() NodeConnectionMessageMetrics[iotago.OutputID]
	GetInStateOutput() NodeConnectionMessageMetrics[*InStateOutput]
	GetInAliasOutput() NodeConnectionMessageMetrics[*iotago.AliasOutput]
	GetInOutput() NodeConnectionMessageMetrics[*InOutput]
	GetInOnLedgerRequest() NodeConnectionMessageMetrics[isc.OnLedgerRequest]
	GetInTxInclusionState() NodeConnectionMessageMetrics[*TxInclusionStateMsg]
}

type NodeConnectionMetrics

type NodeConnectionMetrics interface {
	NodeConnectionMessagesMetrics
	GetInMilestone() NodeConnectionMessageMetrics[*nodeclient.MilestoneInfo]
	SetRegistered(isc.ChainID)
	SetUnregistered(isc.ChainID)
	GetRegistered() []isc.ChainID
	Register(registry *prometheus.Registry)
	NewMessagesMetrics(isc.ChainID) NodeConnectionMessagesMetrics
}

func New

func NewEmptyNodeConnectionMetrics

func NewEmptyNodeConnectionMetrics() NodeConnectionMetrics

type StateTransaction added in v0.3.7

type StateTransaction struct {
	StateIndex  uint32
	Transaction *iotago.Transaction
}

type TxInclusionStateMsg added in v0.3.7

type TxInclusionStateMsg struct {
	TxID  iotago.TransactionID
	State string
}

Jump to

Keyboard shortcuts

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