Documentation
¶
Index ¶
- func AddDriver(driver Interface)
- func All() map[string]generic.Value
- func DriverName() string
- func Drivers() map[string]Interface
- func Get(key string) generic.Value
- func Has(key string) (bool, generic.Value)
- func Init(params ...string) error
- func Register(settings ...any) error
- func Set(key string, value any) error
- func SetDefaultDriver(driver Interface)
- func SetMulti(data map[string]any) error
- type Interface
- type Setting
- type SettingDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverName ¶
func DriverName() string
func SetDefaultDriver ¶
func SetDefaultDriver(driver Interface)
Types ¶
type Interface ¶
type Interface interface { Name() string // Name returns driver name Get(key string) generic.Value // Get returns single value Has(key string) (bool, generic.Value) // Has check if key exists All() map[string]generic.Value // All returns all of configuration values Set(key string, value any) error // Set sets value of a key SetMulti(data map[string]any) error // SetMulti sets multiple keys at once Register(settings ...any) error // Register a new key to be used in the future Init(params ...string) error // Init will be called at the initialization of application }
Click to show internal directories.
Click to hide internal directories.