Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Coin struct { Name string `json:"name"` Shortcut string `json:"shortcut"` Label string `json:"label"` Alias string `json:"alias"` } `json:"coin"` Ports struct { BackendRPC int `json:"backend_rpc"` BackendMessageQueue int `json:"backend_message_queue"` BlockbookInternal int `json:"blockbook_internal"` BlockbookPublic int `json:"blockbook_public"` } `json:"ports"` IPC struct { RPCURLTemplate string `json:"rpc_url_template"` RPCUser string `json:"rpc_user"` RPCPass string `json:"rpc_pass"` RPCTimeout int `json:"rpc_timeout"` MessageQueueBindingTemplate string `json:"message_queue_binding_template"` } `json:"ipc"` Backend struct { PackageName string `json:"package_name"` PackageRevision string `json:"package_revision"` SystemUser string `json:"system_user"` Version string `json:"version"` BinaryURL string `json:"binary_url"` VerificationType string `json:"verification_type"` VerificationSource string `json:"verification_source"` ExtractCommand string `json:"extract_command"` ExcludeFiles []string `json:"exclude_files"` ExecCommandTemplate string `json:"exec_command_template"` LogrotateFilesTemplate string `json:"logrotate_files_template"` PostinstScriptTemplate string `json:"postinst_script_template"` ServiceType string `json:"service_type"` ServiceAdditionalParamsTemplate string `json:"service_additional_params_template"` ProtectMemory bool `json:"protect_memory"` Mainnet bool `json:"mainnet"` ServerConfigFile string `json:"server_config_file"` ClientConfigFile string `json:"client_config_file"` AdditionalParams interface{} `json:"additional_params,omitempty"` } `json:"backend"` Blockbook struct { PackageName string `json:"package_name"` SystemUser string `json:"system_user"` InternalBindingTemplate string `json:"internal_binding_template"` PublicBindingTemplate string `json:"public_binding_template"` ExplorerURL string `json:"explorer_url"` AdditionalParams string `json:"additional_params"` BlockChain struct { Parse bool `json:"parse,omitempty"` Subversion string `json:"subversion,omitempty"` AddressFormat string `json:"address_format,omitempty"` MempoolWorkers int `json:"mempool_workers"` MempoolSubWorkers int `json:"mempool_sub_workers"` BlockAddressesToKeep int `json:"block_addresses_to_keep"` XPubMagic uint32 `json:"xpub_magic,omitempty"` XPubMagicSegwitP2sh uint32 `json:"xpub_magic_segwit_p2sh,omitempty"` XPubMagicSegwitNative uint32 `json:"xpub_magic_segwit_native,omitempty"` Slip44 uint32 `json:"slip44,omitempty"` AdditionalParams map[string]json.RawMessage `json:"additional_params"` } `json:"block_chain"` } `json:"blockbook"` Meta struct { BuildDatetime string `json:"-"` // generated field PackageMaintainer string `json:"package_maintainer"` PackageMaintainerEmail string `json:"package_maintainer_email"` } `json:"meta"` Env struct { Version string `json:"version"` BackendInstallPath string `json:"backend_install_path"` BackendDataPath string `json:"backend_data_path"` BlockbookInstallPath string `json:"blockbook_install_path"` BlockbookDataPath string `json:"blockbook_data_path"` } `json:"-"` }
func LoadConfig ¶
func (*Config) ParseTemplate ¶
Click to show internal directories.
Click to hide internal directories.