service_configs

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusConfig

type ConsensusConfig struct {
	Type      string `toml:",DPoS"`
	BootStrap bool   `toml:",false"`

	//LocalBpName       string `toml:",omitempty"`
	//LocalBpPrivateKey string `toml:",omitempty"`
	LocalBpName       string
	LocalBpPrivateKey string
}

type DatabaseConfig added in v1.0.2

type DatabaseConfig struct {
	Driver   string `toml:",omitempty"`
	User     string `toml:",omitempty"`
	Password string `toml:",omitempty"`
	Db       string `toml:",omitempty"`
}

type GRPCConfig

type GRPCConfig struct {
	RPCName    string
	RPCListen  string
	HTTPListen string
	HTTPCors   []string
	HTTPLimit  int
}

type GenesisConfig added in v1.0.2

type GenesisConfig struct {
	SeedList []string
}

type HCheck added in v1.0.2

type HCheck struct {
	Port string
}

type P2PConfig added in v1.0.2

type P2PConfig struct {
	Genesis                   *GenesisConfig
	EnableConsensus           bool
	ReservedPeersOnly         bool
	ReservedCfg               *P2PRsvConfig
	RunningCodeVersion        string
	NodePort                  uint
	NodeConsensusPort         uint
	DualPortSupport           bool
	IsTLS                     bool
	CertPath                  string
	KeyPath                   string
	CAPath                    string
	MaxConnInBound            uint
	MaxConnOutBound           uint
	MaxConnInBoundForSingleIP uint
}

type P2PRsvConfig added in v1.0.2

type P2PRsvConfig struct {
	ReservedPeers []string
	MaskPeers     []string
}

Jump to

Keyboard shortcuts

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