config

package
v0.0.0-...-0c70756 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const CoreDefaultConfKey = "core"
View Source
const LoggerDefaultConfKey = "core.logger"
View Source
const MetadataDefaultConfKey = "core.metadata"

Variables

This section is empty.

Functions

func GetDefaultConfigValues

func GetDefaultConfigValues() (string, interface{})

Types

type ConfigManager

type ConfigManager struct {
	viper.Viper
}

func NewConfigManager

func NewConfigManager() *ConfigManager

func (*ConfigManager) Fix

func (cm *ConfigManager) Fix()

func (*ConfigManager) LoadLocalConfig

func (cm *ConfigManager) LoadLocalConfig(configPath string) error

func (*ConfigManager) LoadRemoteConfig

func (cm *ConfigManager) LoadRemoteConfig(remoteType string, remoteAddr string, remoteKey string) error

func (*ConfigManager) SetMappedDefault

func (cm *ConfigManager) SetMappedDefault(key string, value interface{})

type CoreConfig

type CoreConfig struct {
	Logger   logger.LogConfig
	Metadata metadata.MetadataStorageConfig
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL