Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCaskNum = 8
View Source
const DefaultConfigJson = "config.json"
View Source
const DefaultConfigPath = ".dscluster"
View Source
const DefaultMutcaskPath = "mutcask"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Identity Identity `json:"identity"` Addresses Addresses `json:"addresses"` ConfPath string `json:"conf_path"` Nodes []Node `json:"nodes"` DisableDelete bool `json:"disable_delete"` ReadOnlyClient bool `json:"read_only_client"` BootstrapNode bool `json:"bootstrap_node"` IdentityList []Identity `json:"identity_list"` Mutcask MutcaskConf `json:"mutcask"` }
func GenClientConf ¶
GenClientConf Generate config json for cluster client node
- key pair
- libp2p listen address
func GenClusterConf ¶
GenClusterConf Generate config json files for server nodes in cluster num - how many servers in the cluster
func ReadConfig ¶
type MutcaskConf ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.