ipld-eth-server/vendor/github.com/ipfs/go-ipfs-config/swarm.go

26 lines
633 B
Go

package config
type SwarmConfig struct {
AddrFilters []string
DisableBandwidthMetrics bool
DisableNatPortMap bool
DisableRelay bool
EnableRelayHop bool
// autorelay functionality
// if true, then the libp2p host will be constructed with autorelay functionality.
EnableAutoRelay bool
// if true, then an AutoNATService will be instantiated to facilitate autorelay
EnableAutoNATService bool
ConnMgr ConnMgr
}
// ConnMgr defines configuration options for the libp2p connection manager
type ConnMgr struct {
Type string
LowWater int
HighWater int
GracePeriod string
}