config

package
v2.141.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BertyDev = &BertyConfig{
	Bootstrap:      ipfs_cfg.DefaultBootstrapAddresses,
	RendezVousPeer: "/dnsaddr/rdvp.berty.io/ipfs/QmdT7AmhhnbuwvCpa5PH1ySK9HJVB82jr3fo1bxMxBPW6p",
	DefaultSwarmAddrs: []string{
		mc.DefaultBind,
		"/ip4/0.0.0.0/tcp/0",
		"/ip6/::/tcp/0",
		"/ip4/0.0.0.0/udp/0/quic",
		"/ip6/::/udp/0/quic",
	},
	Tracing: "jaeger.berty.io:8443",
	APIConfig: config.API{
		HTTPHeaders: map[string][]string{
			"Access-Control-Allow-Origin":  {"*"},
			"Access-Control-Allow-Methods": {"POST", "PUT"},
		},
	},
}
View Source
var BertyMobile = &BertyConfig{
	Bootstrap:      ipfs_cfg.DefaultBootstrapAddresses,
	RendezVousPeer: "/ip4/163.172.106.31/tcp/4040/p2p/QmdT7AmhhnbuwvCpa5PH1ySK9HJVB82jr3fo1bxMxBPW6p",
	DefaultSwarmAddrs: []string{
		mc.DefaultBind,
		"/ip4/0.0.0.0/tcp/0",
		"/ip6/::/tcp/0",
		"/ip4/0.0.0.0/udp/0/quic",
		"/ip6/::/udp/0/quic",
	},
	Tracing:         "jaeger.berty.io:8443",
	DefaultAPIAddrs: []string{"/ip4/127.0.0.1/tcp/5001"},
	APIConfig: config.API{
		HTTPHeaders: map[string][]string{
			"Access-Control-Allow-Origin":  {"*"},
			"Access-Control-Allow-Methods": {"POST", "PUT"},
		},
	},
}

Functions

This section is empty.

Types

type BertyConfig

type BertyConfig struct {
	Bootstrap         []string
	RendezVousPeer    string
	DefaultSwarmAddrs []string
	Tracing           string
	DefaultAPIAddrs   []string
	APIConfig         config.API
}

Jump to

Keyboard shortcuts

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