env

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigEnv           = "CONFIG_FILE"
	ConfigFile          = "config.yaml"
	MigrationSourcePath = "./infrastructure/migration/source"
	//Message Broker
	MbCustomerTopic = "customer"
	MbMediaTopic    = "media"
	MbCatalogTopic  = "catalog"
	DefaultLogPath  = "./log"
	AppModeDev      = "dev"
	AppModeProd     = "production"
)

Variables

Functions

func LoadConf

func LoadConf(path ...string)

func NewViperConf

func NewViperConf(path ...string) *viperConf

func StructToMap

func StructToMap(obj interface{}, tagString string) map[string]interface{}

Types

type Conf

type Conf interface {
	ReadConfig()
	WriteConfig(env2 conf.AppConf) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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