xconf

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 3 Imported by: 2

README

xconf

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GetConfiguration alias for viper.GetViper
	GetConfiguration = viper.GetViper

	// OnConfigChange alias for viper.OnConfigChange
	OnConfigChange = viper.OnConfigChange

	// WatchConfig alias for viper.WatchConfig
	WatchConfig = viper.WatchConfig

	// SetConfigFile alias for viper.SetConfigFile
	SetConfigFile = viper.SetConfigFile

	// SetEnvPrefix alias for viper.SetEnvPrefix
	SetEnvPrefix = viper.SetEnvPrefix

	// AllowEmptyEnv alias for viper.AllowEmptyEnv
	AllowEmptyEnv = viper.AllowEmptyEnv

	// ConfigFileUsed alias for viper.ConfigFileUsed
	ConfigFileUsed = viper.ConfigFileUsed

	// AddConfigPath alias for viper.AddConfigPath
	AddConfigPath = viper.AddConfigPath

	// AddRemoteProvider alias for viper.AddRemoteProvider
	AddRemoteProvider = viper.AddRemoteProvider

	// AddSecureRemoteProvider alias for viper.AddSecureRemoteProvider
	AddSecureRemoteProvider = viper.AddSecureRemoteProvider

	// SetTypeByDefaultValue alias for viper.SetTypeByDefaultValue
	SetTypeByDefaultValue = viper.SetTypeByDefaultValue

	// Get alias for viper.Get
	Get = viper.Get

	// Sub alias for viper.Sub
	Sub = viper.Sub

	// GetString alias for viper.GetString
	GetString = viper.GetString

	// GetBool alias for viper.GetBool
	GetBool = viper.GetBool

	// GetInt alias for viper.GetInt
	GetInt = viper.GetInt

	// GetInt32 alias for viper.GetInt32
	GetInt32 = viper.GetInt32

	// GetInt64 alias for viper.GetInt64
	GetInt64 = viper.GetInt64

	// GetUint alias for viper.GetUint
	GetUint = viper.GetUint

	// GetUint32 alias for viper.GetUint32
	GetUint32 = viper.GetUint32

	// GetUint64 alias for viper.GetUint64
	GetUint64 = viper.GetUint64

	// GetFloat64 alias for viper.GetFloat64
	GetFloat64 = viper.GetFloat64

	// GetTime alias for viper.GetTime
	GetTime = viper.GetTime

	// GetDuration alias for viper.GetDuration
	GetDuration = viper.GetDuration

	// GetIntSlice alias for viper.GetIntSlice
	GetIntSlice = viper.GetIntSlice

	// GetStringSlice alias for viper.GetStringSlice
	GetStringSlice = viper.GetStringSlice

	// GetStringMap alias for viper.GetStringMap
	GetStringMap = viper.GetStringMap

	// GetStringMapString alias for viper.GetStringMapString
	GetStringMapString = viper.GetStringMapString

	// GetStringMapStringSlice alias for viper.GetStringMapStringSlice
	GetStringMapStringSlice = viper.GetStringMapStringSlice

	// GetSizeInBytes alias for viper.GetSizeInBytes
	GetSizeInBytes = viper.GetSizeInBytes

	// UnmarshalKey alias for viper.UnmarshalKey
	UnmarshalKey = viper.UnmarshalKey

	// Unmarshal alias for viper.Unmarshal
	Unmarshal = viper.Unmarshal

	// UnmarshalExact alias for viper.UnmarshalExact
	UnmarshalExact = viper.UnmarshalExact

	// BindPFlags alias for viper.BindPFlags
	BindPFlags = viper.BindPFlags

	// BindPFlag alias for viper.BindPFlag
	BindPFlag = viper.BindPFlag

	// BindFlagValues alias for viper.BindFlagValues
	BindFlagValues = viper.BindFlagValues

	// BindFlagValue alias for viper.BindFlagValue
	BindFlagValue = viper.BindFlagValue

	// BindEnv alias for viper.BindEnv
	BindEnv = viper.BindEnv

	// IsSet alias for viper.IsSet
	IsSet = viper.IsSet

	// AutomaticEnv alias for viper.AutomaticEnv
	AutomaticEnv = viper.AutomaticEnv

	// SetEnvKeyReplacer alias for viper.SetEnvKeyReplacer
	SetEnvKeyReplacer = viper.SetEnvKeyReplacer

	// RegisterAlias alias for viper.RegisterAlias
	RegisterAlias = viper.RegisterAlias

	// InConfig alias for viper.InConfig
	InConfig = viper.InConfig

	// SetDefault alias for viper.SetDefault
	SetDefault = viper.SetDefault

	// Set alias for viper.Set
	Set = viper.Set

	// ReadInConfig alias for viper.ReadInConfig
	ReadInConfig = viper.ReadInConfig

	// MergeInConfig alias for viper.MergeInConfig
	MergeInConfig = viper.MergeInConfig

	// ReadConfig alias for viper.ReadConfig
	ReadConfig = viper.ReadConfig

	// MergeConfig alias for viper.MergeConfig
	MergeConfig = viper.MergeConfig

	// MergeConfigMap alias for viper.MergeConfigMap
	MergeConfigMap = viper.MergeConfigMap

	// WriteConfig alias for viper.WriteConfig
	WriteConfig = viper.WriteConfig

	// SafeWriteConfig alias for viper.SafeWriteConfig
	SafeWriteConfig = viper.SafeWriteConfig

	// WriteConfigAs alias for viper.WriteConfigAs
	WriteConfigAs = viper.WriteConfigAs

	// SafeWriteConfigAs alias for viper.SafeWriteConfigAs
	SafeWriteConfigAs = viper.SafeWriteConfigAs

	// ReadRemoteConfig alias for viper.ReadRemoteConfig
	ReadRemoteConfig = viper.ReadRemoteConfig

	// WatchRemoteConfig alias for viper.WatchRemoteConfig
	WatchRemoteConfig = viper.WatchRemoteConfig

	// AllKeys alias for viper.AllKeys
	AllKeys = viper.AllKeys

	// AllSettings alias for viper.AllSettings
	AllSettings = viper.AllSettings

	// SetFs alias for viper.SetFs
	SetFs = viper.SetFs

	// SetConfigName alias for viper.SetConfigName
	SetConfigName = viper.SetConfigName

	// SetConfigType alias for viper.SetConfigType
	SetConfigType = viper.SetConfigType

	// SetConfigPermissions alias for viper.SetConfigPermissions
	SetConfigPermissions = viper.SetConfigPermissions

	// Debug alias for viper.Debug
	Debug = viper.Debug
)

Functions

func Load

func Load(names ...string) error

Load 通过文件路径来加载

func LoadFs

func LoadFs(embedFs embed.FS, names ...string) error

LoadFs 通过 embed.FS 来加载文件中的数据

Types

type Configuration

type Configuration = viper.Viper

Jump to

Keyboard shortcuts

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