Discover Packages
github.com/imperviousai/imp-daemon
config
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Oct 14, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Server Server `yaml:"server"`
Sql Sql `yaml:"sql"`
DID DID `yaml:"did"`
ServiceList []Services `yaml:"service_list"`
Lightning Lightning `yaml:"lightning"`
ION ION `yaml:"ion"`
Log Log `yaml:"log"`
Key Key `yaml:"key"`
Kv Kv `yaml:"kv"`
}
type DID struct {
UniversalResolverUrls []string `yaml:"universal_resolver_urls"`
}
type GlobalConfig interface {
GetConfig() Config
SaveConfig(cfg Config )
WriteConfig() error
}
type ION struct {
Url string `yaml:"url"`
Active bool `yaml:"active"`
}
type Key struct {
Passphrase string `yaml:"passphrase"`
}
type Kv struct {
Db string `yaml:"db_file"`
}
type Lightning struct {
LndNode Lnd `yaml:"lnd_node"`
}
type Lnd struct {
Ip string `yaml:"ip"`
Port string `yaml:"port"`
PubKey string `yaml:"pub_key"`
TlsCert string `yaml:"tls_cert"`
TlsCertHex string `yaml:"tls_cert_hex"`
AdminMacaroon string `yaml:"admin_macaroon"`
AdminMacaroonHex string `yaml:"admin_macaroon_hex"`
Listening bool `yaml:"listening"`
}
type Log struct {
IgnoreFileWrite bool `yaml:"ignore_file_write"`
}
type Server struct {
Enabled bool `yaml:"enabled"`
GrpcAddr string `yaml:"grpc_addr"`
HttpAddr string `yaml:"http_addr"`
HttpDIDAddr string `yaml:"http_did_addr"`
ClientAddr string `yaml:"client_addr"`
}
type Services struct {
ServiceType string `yaml:"service_type"`
Active bool `yaml:"active"`
CustomMessageType string `yaml:"custom_message_type"`
AdditionalServiceData interface{} `yaml:"additional_service_data"`
}
type Sql struct {
ConnectionString string `yaml:"connection_string"`
Type string `yaml:"type"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.