Documentation ¶
Index ¶
- Constants
- type Storage
- func (storage *Storage) DefaultLanguage() (language.Tag, error)
- func (storage *Storage) Delete(t *i18n.Translation) error
- func (storage *Storage) DeleteSupportedLanguage(tag language.Tag) error
- func (storage *Storage) GetAll() ([]*i18n.Translation, error)
- func (storage *Storage) SetDefaultLanguage(tag language.Tag) error
- func (storage *Storage) Store(t *i18n.Translation) error
- func (storage *Storage) StoreSupportedLanguage(tag language.Tag) error
- func (storage *Storage) SupportedLanguages() ([]language.Tag, error)
Constants ¶
View Source
const ( RedisKey = "i18n_translations" RedisDefaultLanguageKey = "i18n_translations_default" RedisSupportedLanguagesKey = "i18n_translations_supported" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) DeleteSupportedLanguage ¶
func (*Storage) SetDefaultLanguage ¶
func (*Storage) StoreSupportedLanguage ¶
Click to show internal directories.
Click to hide internal directories.