{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Constants\n\n```go\nconst OfficialPath = \"/etc/hyperledger/fabric\"\n```\n\n## Functions\n\n```go\nfunc AddConfigPath(v *viper.Viper, p string)\n```\n\n```go\nfunc GetPath(key string) string\n```\n\\---------------------------------------------------------------------------------- GetPath() ---------------------------------------------------------------------------------- GetPath allows configuration strings that specify a (config-file) relative path\n\nFor example: Assume our config is located in /etc/hyperledger/fabric/core.yaml with a key \"msp.configPath\" = \"msp/config.yaml\".\n\nThis function will return:\n\n\tGetPath(\"msp.configPath\") -\u003e /etc/hyperledger/fabric/msp/config.yaml\n\n\\----------------------------------------------------------------------------------\n\n```go\nfunc InitViper(v *viper.Viper, configName string) error\n```\n\\---------------------------------------------------------------------------------- InitViper() ---------------------------------------------------------------------------------- Performs basic initialization of our viper-based configuration layer. Primary thrust is to establish the paths that should be consulted to find the configuration we need.  If v == nil, we will initialize the global Viper instance ----------------------------------------------------------------------------------\n\n```go\nfunc TranslatePath(base, p string) string\n```\n\\---------------------------------------------------------------------------------- TranslatePath() ---------------------------------------------------------------------------------- Translates a relative path into a fully qualified path relative to the config file that specified it.  Absolute paths are passed unscathed. ----------------------------------------------------------------------------------\n\n```go\nfunc TranslatePathInPlace(base string, p *string)\n```\n\\---------------------------------------------------------------------------------- TranslatePathInPlace() ---------------------------------------------------------------------------------- Translates a relative path into a fully qualified path in-place (updating the pointer) relative to the config file that specified it.  Absolute paths are passed unscathed. ----------------------------------------------------------------------------------\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/config","name":"config","synopsis":"","isRedistributable":true}
