Documentation ¶
Index ¶
- func NewGeexConfig(params ...interface{}) (interface{}, error)
- type GeexConfig
- func (conf *GeexConfig) AddRemoteProvider(provider, endpoint, path string) error
- func (conf *GeexConfig) Get(key string) interface{}
- func (conf *GeexConfig) GetBool(key string) bool
- func (conf *GeexConfig) GetFloat64(key string) float64
- func (conf *GeexConfig) GetInt(key string) int
- func (conf *GeexConfig) GetIntSlice(key string) []int
- func (conf *GeexConfig) GetRemoteConfig() error
- func (conf *GeexConfig) GetString(key string) string
- func (conf *GeexConfig) GetStringMap(key string) map[string]interface{}
- func (conf *GeexConfig) GetStringMapString(key string) map[string]string
- func (conf *GeexConfig) GetStringMapStringSlice(key string) map[string][]string
- func (conf *GeexConfig) GetStringSlice(key string) []string
- func (conf *GeexConfig) GetTime(key string) time.Time
- func (conf *GeexConfig) IsExist(key string) bool
- func (conf *GeexConfig) Load(key string, val interface{}) error
- type GeexConfigProvider
- func (g GeexConfigProvider) Boot(container framework.Container) error
- func (g GeexConfigProvider) IsDefer() bool
- func (g GeexConfigProvider) Name() string
- func (g *GeexConfigProvider) Params(container framework.Container) []interface{}
- func (g GeexConfigProvider) Register(container framework.Container) framework.NewInstance
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) 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 ¶
func (g GeexConfigProvider) Register(container framework.Container) framework.NewInstance
Click to show internal directories.
Click to hide internal directories.