Discover Packages
github.com/akshay-glide/mpcium
pkg
config
package
Version:
v0.0.0-...-c01ef8f
Opens a new window with list of versions in this module.
Published: Oct 26, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
func InitViperConfig(configPath string )
type AppConfig struct {
Consul *ConsulConfig `mapstructure:"consul"`
NATs *NATsConfig `mapstructure:"nats"`
Environment string `mapstructure:"environment"`
BadgerPassword string `mapstructure:"badger_password"`
}
Implement masking serializer AppConfig
type ConsulConfig struct {
Address string `mapstructure:"address"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Token string `mapstructure:"token"`
}
type NATsConfig struct {
URL string `mapstructure:"url"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
TLS *TLSConfig `mapstructure:"tls"`
}
type TLSConfig struct {
ClientCert string `mapstructure:"client_cert"`
ClientKey string `mapstructure:"client_key"`
CACert string `mapstructure:"ca_cert"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.