Documentation ¶
Index ¶
- func NewAnanConfig(params ...interface{}) (interface{}, error)
- type AnanConfig
- func (conf *AnanConfig) Get(key string) interface{}
- func (conf *AnanConfig) GetBool(key string) bool
- func (conf *AnanConfig) GetFloat64(key string) float64
- func (conf *AnanConfig) GetInt(key string) int
- func (conf *AnanConfig) GetIntSlice(key string) []int
- func (conf *AnanConfig) GetString(key string) string
- func (conf *AnanConfig) GetStringMap(key string) map[string]interface{}
- func (conf *AnanConfig) GetStringMapString(key string) map[string]string
- func (conf *AnanConfig) GetStringMapStringSlice(key string) map[string][]string
- func (conf *AnanConfig) GetStringSlice(key string) []string
- func (conf *AnanConfig) GetTime(key string) time.Time
- func (conf *AnanConfig) IsExist(key string) bool
- func (conf *AnanConfig) Load(key string, val interface{}) error
- type AnanConfigProvider
- func (provider *AnanConfigProvider) Boot(c framework.Container) error
- func (provider *AnanConfigProvider) IsDefer() bool
- func (provider *AnanConfigProvider) Name() string
- func (provider *AnanConfigProvider) Params(c framework.Container) []interface{}
- func (provider *AnanConfigProvider) Register(c framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnanConfig ¶
func NewAnanConfig(params ...interface{}) (interface{}, error)
Types ¶
type AnanConfig ¶
type AnanConfig struct {
// contains filtered or unexported fields
}
func (*AnanConfig) Get ¶
func (conf *AnanConfig) Get(key string) interface{}
func (*AnanConfig) GetBool ¶
func (conf *AnanConfig) GetBool(key string) bool
func (*AnanConfig) GetFloat64 ¶
func (conf *AnanConfig) GetFloat64(key string) float64
func (*AnanConfig) GetInt ¶
func (conf *AnanConfig) GetInt(key string) int
func (*AnanConfig) GetIntSlice ¶
func (conf *AnanConfig) GetIntSlice(key string) []int
func (*AnanConfig) GetString ¶
func (conf *AnanConfig) GetString(key string) string
func (*AnanConfig) GetStringMap ¶
func (conf *AnanConfig) GetStringMap(key string) map[string]interface{}
func (*AnanConfig) GetStringMapString ¶
func (conf *AnanConfig) GetStringMapString(key string) map[string]string
func (*AnanConfig) GetStringMapStringSlice ¶
func (conf *AnanConfig) GetStringMapStringSlice(key string) map[string][]string
func (*AnanConfig) GetStringSlice ¶
func (conf *AnanConfig) GetStringSlice(key string) []string
func (*AnanConfig) IsExist ¶
func (conf *AnanConfig) IsExist(key string) bool
func (*AnanConfig) Load ¶
func (conf *AnanConfig) Load(key string, val interface{}) error
type AnanConfigProvider ¶
type AnanConfigProvider struct{}
func (*AnanConfigProvider) Boot ¶
func (provider *AnanConfigProvider) Boot(c framework.Container) error
Boot will called when the service instantiate
func (*AnanConfigProvider) IsDefer ¶
func (provider *AnanConfigProvider) IsDefer() bool
IsDefer define whether the service instantiate when first make or register
func (*AnanConfigProvider) Name ¶
func (provider *AnanConfigProvider) Name() string
/ Name define the name for this service
func (*AnanConfigProvider) Params ¶
func (provider *AnanConfigProvider) Params(c framework.Container) []interface{}
Params define the necessary params for NewInstance
func (*AnanConfigProvider) Register ¶
func (provider *AnanConfigProvider) Register(c framework.Container) framework.NewInstance
Register registe a new function for make a service instance
Click to show internal directories.
Click to hide internal directories.