config

package
v2.80.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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",
	DefaultMCBind:   mc.DefaultBind,
	Tracing:         "bacon.berty.io:8880",
	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"},
		},
	},
}
View Source
var BertyMobile = &BertyConfig{
	Bootstrap:       ipfs_cfg.DefaultBootstrapAddresses,
	RendezVousPeer:  "/ip4/163.172.106.31/tcp/4040/p2p/QmdT7AmhhnbuwvCpa5PH1ySK9HJVB82jr3fo1bxMxBPW6p",
	DefaultMCBind:   mc.DefaultBind,
	Tracing:         "bacon.berty.io:8880",
	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
	DefaultMCBind   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