dto

package
v0.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 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 ChainInfo

type ChainInfo struct {
	IsActive        bool
	ChainID         isc.ChainID
	ChainOwnerID    isc.AgentID
	Description     string
	GasFeePolicy    *gas.GasFeePolicy
	MaxBlobSize     uint32
	MaxEventSize    uint16
	MaxEventsPerReq uint16
}

func MapChainInfo

func MapChainInfo(info *governance.ChainInfo, isActive bool) *ChainInfo

type ChainMetrics

type ChainMetrics struct {
	InAliasOutput                   *MetricItem[*iotago.AliasOutput]
	InOnLedgerRequest               *MetricItem[isc.OnLedgerRequest]
	InOutput                        *MetricItem[*nodeconnmetrics.InOutput]
	InStateOutput                   *MetricItem[*nodeconnmetrics.InStateOutput]
	InTxInclusionState              *MetricItem[*nodeconnmetrics.TxInclusionStateMsg]
	InMilestone                     *MetricItem[*nodeclient.MilestoneInfo]
	OutPublishGovernanceTransaction *MetricItem[*iotago.Transaction]
	OutPullLatestOutput             *MetricItem[interface{}]
	OutPullOutputByID               *MetricItem[iotago.OutputID]
	OutPullTxInclusionState         *MetricItem[iotago.TransactionID]
	OutPublisherStateTransaction    *MetricItem[*nodeconnmetrics.StateTransaction]
	RegisteredChainIDs              []isc.ChainID
}

type ChainNodeInfo

type ChainNodeInfo struct {
	Address        iotago.Address
	AccessNodes    []*ChainNodeStatus
	CandidateNodes []*ChainNodeStatus
	CommitteeNodes []*ChainNodeStatus
}

type ChainNodeStatus

type ChainNodeStatus struct {
	AccessAPI    string
	ForAccess    bool
	ForCommittee bool
	Node         PeeringNodeStatus
}

type ContractsMap

type ContractsMap map[isc.Hname]*root.ContractRecord

type MetricItem

type MetricItem[T interface{}] struct {
	Messages    uint32
	Timestamp   time.Time
	LastMessage T
}

func MapMetricItem

func MapMetricItem[T interface{}](metrics nodeconnmetrics.NodeConnectionMessageMetrics[T]) *MetricItem[T]

type PeeringNodeIdentity

type PeeringNodeIdentity struct {
	PublicKey *cryptolib.PublicKey
	NetID     string
	IsTrusted bool
}

type PeeringNodeStatus

type PeeringNodeStatus struct {
	IsAlive   bool
	NetID     string
	NumUsers  int
	PublicKey *cryptolib.PublicKey
	IsTrusted bool
}

Jump to

Keyboard shortcuts

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