Documentation
¶
Index ¶
- Variables
- func SetDBO(v *gorm.DB)
- type Database
- func (config *Database) All() map[string]generic.Value
- func (config *Database) Get(key string) generic.Value
- func (config *Database) Has(key string) (bool, generic.Value)
- func (config *Database) Init(params ...string) error
- func (config *Database) Name() string
- func (config *Database) Register(settings ...interface{}) error
- func (config *Database) Set(key string, value interface{}) error
- func (config *Database) SetMulti(data map[string]interface{}) error
- type Setting
- type SettingDomain
Constants ¶
This section is empty.
Variables ¶
View Source
var Driver = &Database{}
Functions ¶
Types ¶
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" json:"domain_id"`
Title string `gorm:"column:title" json:"title"`
Description string `gorm:"column:description" json:"description"`
Domain string `gorm:"column:domain;primaryKey" json:"domain"`
Type string `gorm:"column:type" json:"type"`
ReadOnly bool `gorm:"column:read_only" json:"read_only"`
Visible bool `gorm:"column:visible" json:"visible"`
Items []Setting `gorm:"-"`
}
func (SettingDomain) TableName ¶
func (SettingDomain) TableName() string
Click to show internal directories.
Click to hide internal directories.