customconfig

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectSoftwareConfig

func InjectSoftwareConfig(s *SoftwareConfig)

func LoadSoftwareConfig

func LoadSoftwareConfig() baseiface.ISingleton

Types

type MicroConfig

type MicroConfig struct {
	Conf config.Config
}

@Title 文件名称: MicroConfig.go @Description 描述: MicroConfig

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

func (*MicroConfig) Get

func (cfg *MicroConfig) Get(paths ...string) reader.Value

func (*MicroConfig) Load

func (cfg *MicroConfig) Load() (config.Config, error)

type SoftwareConfig

type SoftwareConfig struct {
	baseconfig.BaseConfig
	Env         string `gocfg:"${software.env:dev}"`
	WebPrefix   string `gocfg:"${software.webPrefix}"`
	Ver         string `gocfg:"${software.ver}"`
	Author      string `gocfg:"${software.author}"`
	Corp        string `gocfg:"${software.corp}"`
	LogLevel    string `gocfg:"${software.logLevel}"`
	ShopId      int    `gocfg:"${software.platform.shopId}"`
	ProjectName string `gocfg:"${software.projectName}"`
}

func FindBeanSoftwareConfig

func FindBeanSoftwareConfig() *SoftwareConfig

FindBeanSoftwareConfig

func NewSoftwareConfig

func NewSoftwareConfig() *SoftwareConfig

Jump to

Keyboard shortcuts

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