Documentation ¶
Index ¶
- 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 GetCurrentLocale(req *http.Request) string
- func GetEditableLocales(req *http.Request, currentUser qor.CurrentUser) []string
- func RegisterCallbacks(db *gorm.DB)
- type AvailableLocalesInterface
- type EditableLocalesInterface
- type Interface
- type Locale
- type ViewableLocalesInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterUpdate ¶
func BeforeCreate ¶
func BeforeDelete ¶
func BeforeQuery ¶
func BeforeUpdate ¶
func GetAvailableLocales ¶
func GetAvailableLocales(req *http.Request, currentUser qor.CurrentUser) []string
func GetCurrentLocale ¶
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 ViewableLocalesInterface ¶
type ViewableLocalesInterface interface {
ViewableLocales() []string
}
Click to show internal directories.
Click to hide internal directories.