Documentation
¶
Index ¶
Constants ¶
View Source
const (
QlcConfigFile = "qlc.json"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
func QlcTestDataDir ¶
func QlcTestDataDir() string
Types ¶
type ConfigV2 ¶
type ConfigV2 struct {
Version int `json:"version"`
DataDir string `json:"dataDir"`
StorageMax string `json:"storageMax"`
AutoGenerateReceive bool `json:"autoGenerateReceive"`
LogLevel string `json:"logLevel"` //info,warn,debug
PerformanceEnabled bool `json:"performanceEnabled"`
RPC *RPCConfigV2 `json:"rpc"`
P2P *P2PConfigV2 `json:"p2p"`
}
func DefaultConfigV2 ¶
type ConfigV3 ¶
func DefaultConfigV3 ¶
type ConfigV4 ¶
func DefaultConfigV4 ¶
type ConfigV5 ¶
type ConfigV5 struct {
ConfigV4 `mapstructure:",squash"`
Metrics *MetricsConfig `json:"metrics"`
Manager *Manager `json:"manager"`
}
func DefaultConfigV5 ¶
type DiscoveryConfigV2 ¶
type DiscoveryConfigV2 struct {
// Time in seconds between remote discovery rounds
DiscoveryInterval int `json:"discoveryInterval"`
//The maximum number of discovered nodes at a time
Limit int `json:"limit"`
MDNSEnabled bool `json:"mDNSEnabled"`
// Time in seconds between local discovery rounds
MDNSInterval int `json:"mDNSInterval"`
}
type IdentityConfigV2 ¶
type MetricsConfig ¶
type P2PConfigV2 ¶
type P2PConfigV2 struct {
BootNodes []string `json:"bootNode" mapstructure:"bootNode"`
Listen string `json:"listen"`
//Time in seconds between sync block interval
SyncInterval int `json:"syncInterval"`
Discovery *DiscoveryConfigV2 `json:"discovery"`
ID *IdentityConfigV2 `json:"identity" mapstructure:"identity"`
}
type RPCConfigV2 ¶
type RPCConfigV2 struct {
Enable bool `json:"rpcEnabled" mapstructure:"rpcEnabled"`
//Listen string `json:"Listen"`
HTTPEndpoint string `json:"httpEndpoint"`
HTTPEnabled bool `json:"httpEnabled"`
HTTPCors []string `json:"httpCors"`
HttpVirtualHosts []string `json:"httpVirtualHosts"`
WSEnabled bool `json:"webSocketEnabled" mapstructure:"webSocketEnabled"`
WSEndpoint string `json:"webSocketEndpoint" mapstructure:"webSocketEndpoint"`
IPCEndpoint string `json:"ipcEndpoint"`
IPCEnabled bool `json:"ipcEnabled"`
PublicModules []string `json:"publicModules"`
}
Click to show internal directories.
Click to hide internal directories.