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 ...interface{})
- func Set(key string, value interface{}) error
- func SetDefaultDriver(driver Interface)
- func SetMulti(data map[string]interface{}) 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 returns driver name Name() string Get(key string) generic.Value Has(key string) (bool, generic.Value) All() map[string]generic.Value Set(key string, value interface{}) error SetMulti(data map[string]interface{}) error Register(settings ...interface{}) error Init(params ...string) error }
type Setting ¶
type Setting struct { Domain string `gorm:"column:domain;primaryKey" json:"domain"` Name string `gorm:"column:name;primaryKey" json:"name"` Title string `gorm:"column:title" json:"title"` Description string `gorm:"column:description" json:"description"` Value string `gorm:"column:value" json:"value"` Type string `gorm:"column:type" json:"type"` Params string `gorm:"column:params" json:"params"` ReadOnly bool `gorm:"column:read_only" json:"read_only"` Visible bool `gorm:"column:visible" json:"visible"` }
type SettingDomain ¶
type SettingDomain struct { DomainID int `gorm:"column:domain_id;primaryKey" json:"domain_id"` Title string `gorm:"column:title" json:"title"` Description string `gorm:"column:description" json:"description"` Domain string `gorm:"column:domain" json:"domain"` ReadOnly bool `gorm:"column:read_only" json:"read_only"` Visible bool `gorm:"column:visible" json:"visible"` }
Click to show internal directories.
Click to hide internal directories.