Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
NetworkConfig, NetworkToken string
Address string
Router string
Interface string
Libp2pLogLevel, LogLevel string
LowProfile, BootstrapIface bool
Blacklist []string
Concurrency int
FrameTimeout string
ChannelBufferSize, InterfaceMTU, PacketMTU int
NAT NAT
Connection Connection
Discovery Discovery
Ledger Ledger
Limit ResourceLimit
Privkey []byte
// PeerGuard (experimental)
// enable peerguardian and add specific auth options
PeerGuard PeerGuard
Whitelist []multiaddr.Multiaddr
}
Config is the config struct for the node and the default EdgeVPN services It is used to generate opts for the node and the services before start.
type Connection ¶
type Connection struct { HolePunch bool AutoRelay bool AutoRelayDiscoveryInterval time.Duration StaticRelays []string OnlyStaticRelays bool PeerTable map[string]peer.ID MaxConnections int LowWater int HighWater int }
Connection is the configuration section relative to the connection services
type NAT ¶
type NAT struct { Service bool Map bool RateLimit bool RateLimitGlobal, RateLimitPeer int RateLimitInterval time.Duration }
NAT is the structure relative to NAT configuration settings It allows to enable/disable the service and NAT mapping, and rate limiting too.
type ResourceLimit ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.