conf

package
v0.0.0-...-25c57ca Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConnectTimeout = time.Second * 30
)

Variables

This section is empty.

Functions

func AppDial

func AppDial(address net.Addr) (net.Conn, error)

func AppLookup

func AppLookup(host string) ([]net.IP, error)

Types

type AppConfig

type AppConfig struct {
	DataDir            string        `short:"b" long:"datadir" description:"Directory to store data"`
	ShowVersion        bool          `short:"v" long:"version" description:"Disaplay version in"`
	NoPeerBloomFilters bool          `long:"nopeerbloomfilters" description:"Disable bloom filtering support"`
	MaxPeers           int           `long:"maxpeers" description:"Max number of inbound and outbound peers"`
	DisableBanning     bool          `long:"nobanning" description:"Disable banning of misbehaving peers"`
	BanDuration        time.Duration `long:"banduration" description:"How long to ban misbehaving peers.  Valid time units are {s, m, h}.  Minimum 1 second"`
	BanThreshold       uint32        `long:"banthreshold" description:"Maximum allowed ban score before disconnecting and banning misbehaving peers."`

	Listeners []string `` /* 127-byte string literal not displayed */

	NoOnion        bool `long:"noonion" description:"Disable connecting to tor hidden services"`
	TorIsolation   bool `long:"torisolation" description:"Enable Tor stream isolation by randomizing user credentials for each connection."`
	TestNet3       bool `long:"testnet" description:"Use the test network"`
	RegressionTest bool `long:"regtest" description:"Use the regression test network"`
	SimNet         bool `long:"simnet" description:"Use the simulation test network"`

	DisableListen bool `` /* 214-byte string literal not displayed */

	DisableDNSSeed bool `long:"nodnsseed" description:"Disable DNS seeding for peers"`
	// contains filtered or unexported fields
}
var AppConf *AppConfig

Jump to

Keyboard shortcuts

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