config

package
v0.0.0-...-03f131e Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGeexConfig

func NewGeexConfig(params ...interface{}) (interface{}, error)

NewGeexConfig 初始化Config的方法

Types

type GeexConfig

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

func (*GeexConfig) AddRemoteProvider

func (conf *GeexConfig) AddRemoteProvider(provider, endpoint, path string) error

func (*GeexConfig) Get

func (conf *GeexConfig) Get(key string) interface{}

func (*GeexConfig) GetBool

func (conf *GeexConfig) GetBool(key string) bool

func (*GeexConfig) GetFloat64

func (conf *GeexConfig) GetFloat64(key string) float64

func (*GeexConfig) GetInt

func (conf *GeexConfig) GetInt(key string) int

func (*GeexConfig) GetIntSlice

func (conf *GeexConfig) GetIntSlice(key string) []int

func (*GeexConfig) GetRemoteConfig

func (conf *GeexConfig) GetRemoteConfig() error

func (*GeexConfig) GetString

func (conf *GeexConfig) GetString(key string) string

func (*GeexConfig) GetStringMap

func (conf *GeexConfig) GetStringMap(key string) map[string]interface{}

func (*GeexConfig) GetStringMapString

func (conf *GeexConfig) GetStringMapString(key string) map[string]string

func (*GeexConfig) GetStringMapStringSlice

func (conf *GeexConfig) GetStringMapStringSlice(key string) map[string][]string

func (*GeexConfig) GetStringSlice

func (conf *GeexConfig) GetStringSlice(key string) []string

func (*GeexConfig) GetTime

func (conf *GeexConfig) GetTime(key string) time.Time

func (*GeexConfig) IsExist

func (conf *GeexConfig) IsExist(key string) bool

func (*GeexConfig) Load

func (conf *GeexConfig) Load(key string, val interface{}) error

type GeexConfigProvider

type GeexConfigProvider struct {
}

func (GeexConfigProvider) Boot

func (g GeexConfigProvider) Boot(container framework.Container) error

func (GeexConfigProvider) IsDefer

func (g GeexConfigProvider) IsDefer() bool

func (GeexConfigProvider) Name

func (g GeexConfigProvider) Name() string

func (*GeexConfigProvider) Params

func (g *GeexConfigProvider) Params(container framework.Container) []interface{}

func (GeexConfigProvider) Register

Jump to

Keyboard shortcuts

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