Documentation ¶
Index ¶
- Variables
- func AfterUpdate(scope *gorm.Scope)
- func BeforeCreate(scope *gorm.Scope)
- func BeforeDelete(scope *gorm.Scope)
- func BeforeQuery(scope *gorm.Scope)
- func BeforeUpdate(scope *gorm.Scope)
- func GetAvailableLocales(req *http.Request, currentUser qor.CurrentUser) []string
- func GetEditableLocales(req *http.Request, currentUser qor.CurrentUser) []string
- func RegisterCallbacks(db *gorm.DB)
- type AvailableLocalesInterface
- type EditableLocalesInterface
- type Interface
- type Locale
- type LocaleCreateableInterface
- type ViewableLocalesInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var Global = "en-US"
Functions ¶
func AfterUpdate ¶
func BeforeCreate ¶
func BeforeDelete ¶
func BeforeQuery ¶
func BeforeUpdate ¶
func GetAvailableLocales ¶
func GetAvailableLocales(req *http.Request, currentUser qor.CurrentUser) []string
func GetEditableLocales ¶
func GetEditableLocales(req *http.Request, currentUser qor.CurrentUser) []string
func RegisterCallbacks ¶
Types ¶
type AvailableLocalesInterface ¶
type AvailableLocalesInterface interface {
AvailableLocales() []string
}
type EditableLocalesInterface ¶
type EditableLocalesInterface interface {
EditableLocales() []string
}
type Locale ¶
type Locale struct {
LanguageCode string `sql:"size:6" gorm:"primary_key"`
}
func (*Locale) InjectQorAdmin ¶
type LocaleCreateableInterface ¶
type LocaleCreateableInterface interface {
LocaleCreateable()
}
type ViewableLocalesInterface ¶
type ViewableLocalesInterface interface {
ViewableLocales() []string
}
Click to show internal directories.
Click to hide internal directories.