Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TopologyConfig ¶
type TopologyConfig struct { LocalRoots []TopologyConfigP2PLocalRoot `json:"localRoots"` PublicRoots []TopologyConfigP2PPublicRoot `json:"publicRoots"` BootstrapPeers []TopologyConfigP2PBootstrapPeer `json:"bootstrapPeers"` UseLedgerAfterSlot int64 `json:"useLedgerAfterSlot"` }
TopologyConfig represents a cardano-node topology config
func NewTopologyConfigFromFile ¶
func NewTopologyConfigFromFile(path string) (*TopologyConfig, error)
func NewTopologyConfigFromReader ¶
func NewTopologyConfigFromReader(r io.Reader) (*TopologyConfig, error)
type TopologyConfigP2PBootstrapPeer ¶
type TopologyConfigP2PBootstrapPeer = TopologyConfigP2PAccessPoint
type TopologyConfigP2PLocalRoot ¶
type TopologyConfigP2PLocalRoot struct { AccessPoints []TopologyConfigP2PAccessPoint `json:"accessPoints"` Advertise bool `json:"advertise"` Trustable bool `json:"trustable"` Valency uint `json:"valency"` }
type TopologyConfigP2PPublicRoot ¶
type TopologyConfigP2PPublicRoot struct { AccessPoints []TopologyConfigP2PAccessPoint `json:"accessPoints"` Advertise bool `json:"advertise"` Valency uint `json:"valency"` }
Click to show internal directories.
Click to hide internal directories.