Documentation ¶
Overview ¶
Package config - create default config and read config values
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrConfigExists is returned on init if config file exists ErrConfigExists = errors.New("Config file already exists") // ErrConfigNotFound is returned when configuration not found ErrConfigNotFound = errors.New("Configuration not found") )
Functions ¶
Types ¶
type Config ¶
type Config struct { HTTP HTTPConfig `yaml:"http"` Node NodeConfig `yaml:"node"` Log LogConfig `yaml:"log"` IPFS IPFSConfig `yaml:"ipfs"` Plugins PluginsConfig `yaml:"plugins"` }
Config -
func ParseConfig ¶
ParseConfig parses configuration file
type HTTPConfig ¶
type HTTPConfig struct { ListenAddr string `yaml:"listenAddr"` MetricsAddr string `yaml:"metricsAddr"` OIDCProvider string `yaml:"oidcProvider"` OIDCClientID string `yaml:"oidcClientID"` OIDCClientKey string `yaml:"oidcClientKey"` CorsAllow string `yaml:"corsAllow"` }
HTTPConfig -
type IPFSConfig ¶
type IPFSConfig struct { Connector string `yaml:"connector"` Bootstrap []string `yaml:"bootstrap"` ListenAddress string `yaml:"listenAddress"` APIAddress string `yaml:"apiAddress"` }
IPFSConfig -
type NodeConfig ¶
type NodeConfig struct { NodeType string `yaml:"nodeType"` MasterFiduciaryServer string `yaml:"masterFiduciaryServer"` MasterFiduciaryNodeID string `yaml:"masterFiduciaryNodeID"` NodeID string `yaml:"nodeID"` NodeName string `yaml:"nodeName"` Datastore string `yaml:"dataStore"` }
NodeConfig -
Click to show internal directories.
Click to hide internal directories.