dto

package
v0.5.0-alpha.7 Latest Latest
Warning

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

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

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 {
	Name       string
	PublicKey  *cryptolib.PublicKey
	PeeringURL string
	IsTrusted  bool
}

type PeeringNodeStatus

type PeeringNodeStatus struct {
	Name       string
	IsAlive    bool
	PeeringURL 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