config

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const DefaultConnMgrGracePeriod = time.Second * 20

DefaultConnMgrGracePeriod is the default value for the connection managers grace period

View Source
const DefaultConnMgrHighWater = 900

DefaultConnMgrHighWater is the default value for the connection managers 'high water' mark

View Source
const DefaultConnMgrLowWater = 600

DefaultConnMgrLowWater is the default value for the connection managers 'low water' mark

Variables

View Source
var BootstrapAddresses = []string{
	"/ip4/54.89.183.252/tcp/46539/ipfs/QmVVKdbGw5VnNLWFw4YjsJUtwU3xPFemzbAMeCJtAtr2YF",
	"/ip4/34.203.191.62/tcp/21117/ipfs/QmPZhrJ47ym4be69HUp3FC6DMV3H7kDUQTuaaYP3okpKdq",
	"/ip4/54.175.223.66/tcp/38180/ipfs/Qmen1NEX4FcVsPVdVS9HK3ZjdymePSWtLwhpggrnfr6i7F",
	"/ip4/18.213.220.205/tcp/18343/ipfs/QmarZawkUWeFw1zxyNJBSKQvt3HX3AWVPxkktNaU34ojuK",

	"/ip4/52.59.250.251/tcp/45785/ipfs/QmZcuJi2ctkkjwTF2HBAN9tU8w1Gkj1r2ZUm7tfcBuXSsf",
	"/ip4/35.159.51.5/tcp/8367/ipfs/QmUoxL8BJYKLPVMkyPHERA2uy8ns3uKmLC3Kc4WQRP28Vt",
	"/ip4/35.158.110.50/tcp/42603/ipfs/QmXvhsrgmwr9zHQWgpokQCpuuBCGFffo79PHJSadFX6TjD",
}
View Source
var DefaultServerFilters = []string{
	"/ip4/10.0.0.0/ipcidr/8",
	"/ip4/100.64.0.0/ipcidr/10",
	"/ip4/169.254.0.0/ipcidr/16",
	"/ip4/172.16.0.0/ipcidr/12",
	"/ip4/192.0.0.0/ipcidr/24",
	"/ip4/192.0.0.0/ipcidr/29",
	"/ip4/192.0.0.8/ipcidr/32",
	"/ip4/192.0.0.170/ipcidr/32",
	"/ip4/192.0.0.171/ipcidr/32",
	"/ip4/192.0.2.0/ipcidr/24",
	"/ip4/192.168.0.0/ipcidr/16",
	"/ip4/198.18.0.0/ipcidr/15",
	"/ip4/198.51.100.0/ipcidr/24",
	"/ip4/203.0.113.0/ipcidr/24",
	"/ip4/240.0.0.0/ipcidr/4",
}

DefaultServerFilters has a list of non-routable IPv4 prefixes according to http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml

Functions

func GetRandomPort

func GetRandomPort() int

func Init

func Init(identity native.Identity, version string) (*native.Config, error)

func Update

func Update(rep repo.Repo, key string, value interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL