Documentation ¶
Index ¶
Constants ¶
View Source
const DHTClientMode = "client"
View Source
const DHTFullMode = "full"
View Source
const DHTServerMode = "server"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct { Enabled bool Peers MaddrArray }
type Config ¶
type Config struct { ListenAddr JSONMaddr Quiet bool ID string Bootstrap Bootstrap DHT DHT ConnectionManager ConnectionManager QUIC bool NatPortMap bool PubSub PubSub Relay Relay AutoNat bool HostAddresses MaddrArray AnnounceAddresses MaddrArray NoListen bool MetricsAddress string PProf PProf Security Security }
func NewDefaultConfig ¶
func NewDefaultConfig() Config
func (*Config) UnmarshalJSON ¶
type ConnectionManager ¶
type GossipSubHeartbeat ¶
type MaddrArray ¶
type MaddrArray []multiaddr.Multiaddr
func (*MaddrArray) UnmarshalJSON ¶
func (maa *MaddrArray) UnmarshalJSON(b []byte) error
type PubSub ¶
type PubSub struct { Enabled bool Router string Sign bool SignStrict bool GossipSubHeartbeat GossipSubHeartbeat }
Click to show internal directories.
Click to hide internal directories.