setting

package
v1.56.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APP struct{ Setting Setting }

Functions

This section is empty.

Types

type AttrConfig

type AttrConfig struct {
	// contains filtered or unexported fields
}

******************** 配置文件属性 ********************

func Content

func Content(content any) AttrConfig

func (AttrConfig) Register

func (my AttrConfig) Register(setting *Setting)

type AttrConfigFilename

type AttrConfigFilename struct {
	// contains filtered or unexported fields
}

******************** 配置文件属性 ********************

func ConfigFilename

func ConfigFilename(configFilename string) AttrConfigFilename

func (AttrConfigFilename) Register

func (my AttrConfigFilename) Register(setting *Setting)

type AttrEnvName

type AttrEnvName struct {
	// contains filtered or unexported fields
}

******************** 配置文件属性 ********************

func EnvName

func EnvName(envName string) AttrEnvName

func (AttrEnvName) Register

func (my AttrEnvName) Register(setting *Setting)

type AttrOnChange

type AttrOnChange struct {
	// contains filtered or unexported fields
}

******************** 配置文件属性 ********************

func OnChange

func OnChange(onChange func(v *viper.Viper, e fsnotify.Event)) AttrOnChange

func (AttrOnChange) Register

func (my AttrOnChange) Register(setting *Setting)

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

******************** 配置文件 ******************** Setting

func (Setting) New

func (Setting) New(attrs ...SettingAttributes) (v *viper.Viper)

func (Setting) SetAttrs

func (my Setting) SetAttrs(attrs ...SettingAttributes) Setting

type SettingAttributes

type SettingAttributes interface{ Register(setting *Setting) }

******************** 配置文件属性 ********************

Jump to

Keyboard shortcuts

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