Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultNodeConf = "config.json"
View Source
const DefaultRepoPath = "~/.filejoy"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Identity Identity `json:"identity"`
ListenAddrs []string `json:"listen_addrs"`
AnnounceAddrs []string `json:"announce_addrs"`
Bootstrappers []string `json:"bootstrappers"`
Datastore string `json:"datastore"`
Blockstore string `json:"blockstore"`
DSClusterConf string `json:"ds_cluster_conf"`
RemoteDSConf string `json:"remote_ds_conf"`
RPC JSONRPC `json:"rpc"`
Relay bool `json:"relay"`
EnableRemoteDS bool `json:"enable_remote_ds"`
GateWayPort uint `json:"gateway_port"`
}
func LoadConfig ¶
func LoadOrInitConfig ¶
Click to show internal directories.
Click to hide internal directories.