Documentation ¶
Index ¶
- Variables
- type Ctx
- type FirstLaunch
- type Repo
- func (r *Repo) CreateCategory(ctx Ctx, name string) error
- func (r *Repo) CreateIdentifier(ctx Ctx, creatorID, categoryID, parentID int64, ...) (int64, error)
- func (r *Repo) CreateLocalization(ctx Ctx, creatorID int64, locale, languageName string) (*dao.Localization, error)
- func (r *Repo) CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, ...) error
- func (r *Repo) CreateTranslationFile(ctx Ctx, name, path, s3fileID, s3bucket string, ...) error
- func (r *Repo) CreateUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*dao.User, error)
- func (r *Repo) DeleteCategory(ctx Ctx, id int64) error
- func (r *Repo) DeleteIdentifier(ctx Ctx, id int64) error
- func (r *Repo) DeleteLocalization(ctx Ctx, id int64) error
- func (r *Repo) DeleteSession(ctx Ctx, token string) error
- func (r *Repo) DeleteTranslation(ctx Ctx, id int64) error
- func (r *Repo) DeleteTranslationFile(ctx Ctx, id int64) error
- func (r *Repo) GetCategories(ctx Ctx) ([]*dao.Category, error)
- func (r *Repo) GetCategory(id int64) (*dao.Category, error)
- func (r *Repo) GetDB() *sqlx.DB
- func (r *Repo) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) (map[string][]*dao.Translation, error)
- func (r *Repo) GetIdentifierByID(tx *reform.TX, id int64) (*dao.Identifier, error)
- func (r *Repo) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*dao.Identifier, error)
- func (r *Repo) GetLanguages(ctx Ctx) ([]*dao.Language, error)
- func (r *Repo) GetLocalization(ctx Ctx, id int64) (*dao.Localization, error)
- func (r *Repo) GetLocalizations(ctx Ctx) ([]*dao.Localization, error)
- func (r *Repo) GetStatistic(ctx Ctx) (*dao.Statistic, error)
- func (r *Repo) GetTranslation(ctx app.Ctx, locale, identifierName string) (*dao.Translation, error)
- func (r *Repo) GetTranslationByID(ctx Ctx, id int64) (*dao.Translation, error)
- func (r *Repo) GetTranslationFile(ctx Ctx, id int64) (*dao.TranslationFile, error)
- func (r *Repo) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*dao.TranslationFile, error)
- func (r *Repo) GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*dao.Translation, error)
- func (r *Repo) GetUserByEmail(email string) (*dao.User, error)
- func (r *Repo) GetUserByID(id int64) (*dao.User, error)
- func (r *Repo) GetUserByUserUUID(userUUID string) (*dao.User, error)
- func (r *Repo) GetUsers(ctx Ctx) ([]*dao.User, error)
- func (r *Repo) GetVersionFromTranslationFiles(ctx Ctx, f filter.VersionTranslationFilesFilter) ([]*dao.Version, error)
- func (r *Repo) GetVersionFromTranslations(ctx Ctx, f filter.VersionTranslationsFilter) ([]*dao.Version, error)
- func (r *Repo) SaveSession(ctx Ctx, userID int64, token string) error
- func (r *Repo) SelectIdentifierListID(ctx Ctx, tx *reform.TX) ([]int64, error)
- func (r *Repo) SelectLocalizationListID(ctx Ctx, tx *reform.TX) ([]int64, error)
- func (r *Repo) SessionByAccessToken(ctx Ctx, token string) (*dao.UserSession, error)
- func (r *Repo) UpdateCategory(ctx app.Ctx, id int64, name string) error
- func (r *Repo) UpdateIdentifier(ctx app.Ctx, id, categoryID, parentID int64, ...) error
- func (r *Repo) UpdatePassword(ctx app.Ctx, userID int64, passwordHash string) error
- func (r *Repo) UpdateProfile(ctx app.Ctx, userID int64, email, firstName, secondName string, ...) error
- func (r *Repo) UpdateStatus(ctx app.Ctx, userID, status int64) error
- func (r *Repo) UpdateStatusTranslation(ctx Ctx, id, status int64) error
- func (r *Repo) UpdateTranslation(ctx Ctx, id int64, singular, plural string) error
- func (r *Repo) UpdateTranslationWithMeta(ctx Ctx, localizationID, identifierID int64, singular, plural string) error
- type SettingRepo
- func (s *SettingRepo) DisableSettingFirstLaunch(ctx Ctx) error
- func (s SettingRepo) GetCurrentSettingState() domain.SettingConfiguration
- func (s *SettingRepo) SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error
- func (s *SettingRepo) SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicateKeyValue = errors.New("duplicate key value")
)
Functions ¶
This section is empty.
Types ¶
type FirstLaunch ¶
type FirstLaunch struct {
State bool `json:"state"`
}
type Repo ¶
func (*Repo) CreateIdentifier ¶
func (*Repo) CreateLocalization ¶
func (*Repo) CreateTranslation ¶
func (*Repo) CreateTranslationFile ¶
func (*Repo) CreateUser ¶
func (*Repo) GetGroupedTranslations ¶
func (r *Repo) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) (map[string][]*dao.Translation, error)
func (*Repo) GetIdentifierByID ¶
func (r *Repo) GetIdentifierByID(tx *reform.TX, id int64) (*dao.Identifier, error)
func (*Repo) GetIdentifiers ¶
func (r *Repo) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*dao.Identifier, error)
func (*Repo) GetLocalization ¶
func (*Repo) GetLocalizations ¶
func (r *Repo) GetLocalizations(ctx Ctx) ([]*dao.Localization, error)
func (*Repo) GetTranslation ¶
func (*Repo) GetTranslationByID ¶
func (*Repo) GetTranslationFile ¶
func (*Repo) GetTranslationFiles ¶
func (r *Repo) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*dao.TranslationFile, error)
func (*Repo) GetTranslations ¶
func (r *Repo) GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*dao.Translation, error)
func (*Repo) GetUserByUserUUID ¶
func (*Repo) GetVersionFromTranslationFiles ¶
func (*Repo) GetVersionFromTranslations ¶
func (*Repo) SelectIdentifierListID ¶
func (*Repo) SelectLocalizationListID ¶
func (*Repo) SessionByAccessToken ¶
func (*Repo) UpdateCategory ¶
func (*Repo) UpdateIdentifier ¶
func (*Repo) UpdatePassword ¶
func (*Repo) UpdateProfile ¶
func (*Repo) UpdateStatusTranslation ¶
func (*Repo) UpdateTranslation ¶
type SettingRepo ¶
func NewSettingRepo ¶
func NewSettingRepo(path, defaultLanguage string) (*SettingRepo, error)
func (*SettingRepo) DisableSettingFirstLaunch ¶
func (s *SettingRepo) DisableSettingFirstLaunch(ctx Ctx) error
func (SettingRepo) GetCurrentSettingState ¶
func (s SettingRepo) GetCurrentSettingState() domain.SettingConfiguration
func (*SettingRepo) SetStorageConfiguration ¶
func (s *SettingRepo) SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error
func (*SettingRepo) SetTranslationConfiguration ¶
func (s *SettingRepo) SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error
Click to show internal directories.
Click to hide internal directories.