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
Echo bool
}
func NewDefaultConfig ¶
func NewDefaultConfig() Config
func (*Config) UnmarshalJSON ¶
type ConnectionManager ¶
type GossipSubHeartbeat ¶
type JSONMaddr ¶
func (*JSONMaddr) UnmarshalJSON ¶
type MaddrArray ¶
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.