Documentation ¶
Index ¶
- type RequestMiddleware
- type ResponseMiddleware
- type Server
- type Storage
- func (storage *Storage) DefaultLanguage() (language.Tag, error)
- func (storage *Storage) Delete(t *i18n.Translation) error
- func (storage *Storage) DeleteSupportedLanguage(language.Tag) error
- func (storage *Storage) GetAll() ([]*i18n.Translation, error)
- func (storage *Storage) SetDefaultLanguage(language.Tag) error
- func (storage *Storage) Store(t *i18n.Translation) error
- func (storage *Storage) StoreSupportedLanguage(language.Tag) error
- func (storage *Storage) SupportedLanguages() ([]language.Tag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestMiddleware ¶
type ResponseMiddleware ¶
type ResponseMiddleware func(w http.ResponseWriter, r *http.Request) bool
Middleware for server, return true to continue
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage(url string, middleware ...RequestMiddleware) *Storage
func (*Storage) DeleteSupportedLanguage ¶
func (*Storage) StoreSupportedLanguage ¶
Click to show internal directories.
Click to hide internal directories.