config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebConfig

func NewWebConfig(params ...any) (any, error)

Types

type WebConfig

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

func (*WebConfig) Get

func (conf *WebConfig) Get(key string) any

func (*WebConfig) GetBool

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

func (*WebConfig) GetFloat64

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

func (*WebConfig) GetInt

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

func (*WebConfig) GetIntSlice

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

func (*WebConfig) GetString

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

func (*WebConfig) GetStringMap

func (conf *WebConfig) GetStringMap(key string) map[string]any

func (*WebConfig) GetStringMapString

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

func (*WebConfig) GetStringMapStringSlice

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

func (*WebConfig) GetStringSlice

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

func (*WebConfig) GetTime

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

func (*WebConfig) IsExists

func (conf *WebConfig) IsExists(key string) bool

func (*WebConfig) Load

func (conf *WebConfig) Load(key string, val any) error

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

Jump to

Keyboard shortcuts

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