Documentation ¶
Index ¶
- func NewWebConfig(params ...any) (any, error)
- type WebConfig
- func (conf *WebConfig) Get(key string) any
- func (conf *WebConfig) GetBool(key string) bool
- func (conf *WebConfig) GetFloat64(key string) float64
- func (conf *WebConfig) GetInt(key string) int
- func (conf *WebConfig) GetIntSlice(key string) []int
- func (conf *WebConfig) GetString(key string) string
- func (conf *WebConfig) GetStringMap(key string) map[string]any
- func (conf *WebConfig) GetStringMapString(key string) map[string]string
- func (conf *WebConfig) GetStringMapStringSlice(key string) map[string][]string
- func (conf *WebConfig) GetStringSlice(key string) []string
- func (conf *WebConfig) GetTime(key string) time.Time
- func (conf *WebConfig) IsExists(key string) bool
- func (conf *WebConfig) Load(key string, val any) error
- type WebConfigProvider
- func (provider *WebConfigProvider) Boot(c framework.Container) error
- func (provider *WebConfigProvider) IsDefer() bool
- func (provider *WebConfigProvider) Name() string
- func (provider *WebConfigProvider) Params(c framework.Container) []any
- func (provider *WebConfigProvider) Register(c framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebConfig ¶
Types ¶
type WebConfig ¶
type WebConfig struct {
// contains filtered or unexported fields
}
func (*WebConfig) GetFloat64 ¶
func (*WebConfig) GetIntSlice ¶
func (*WebConfig) GetStringMapString ¶
func (*WebConfig) GetStringMapStringSlice ¶
func (*WebConfig) GetStringSlice ¶
type WebConfigProvider ¶
type WebConfigProvider struct { }
func (*WebConfigProvider) Boot ¶
func (provider *WebConfigProvider) Boot(c framework.Container) error
func (*WebConfigProvider) IsDefer ¶
func (provider *WebConfigProvider) IsDefer() bool
func (*WebConfigProvider) Name ¶
func (provider *WebConfigProvider) Name() string
func (*WebConfigProvider) Params ¶
func (provider *WebConfigProvider) Params(c framework.Container) []any
func (*WebConfigProvider) Register ¶
func (provider *WebConfigProvider) Register(c framework.Container) framework.NewInstance
Click to show internal directories.
Click to hide internal directories.