Documentation ¶
Overview ¶
Package app is a generated GoMock package.
Package app is a generated GoMock package.
Package app is a generated GoMock package.
Index ¶
- Variables
- type AccessToken
- type Appl
- type Auth
- type Config
- type Ctx
- type MockAppl
- func (m *MockAppl) AuthorizeUser(ctx Ctx, email, password string) (AccessToken, *domain.User, error)
- func (m *MockAppl) CreateAutoTranslationByID(ctx Ctx, id int64) error
- func (m *MockAppl) CreateCategory(ctx Ctx, name string) error
- func (m *MockAppl) CreateIdentifier(ctx Ctx, creatorID, categoryID, parentID int64, ...) error
- func (m *MockAppl) CreateLocalization(ctx Ctx, creatorID int64, name, code string) error
- func (m *MockAppl) CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, ...) error
- func (m *MockAppl) CreateTranslationFile(ctx Ctx, platform, storageType string, creatorID, localizationID int64) error
- func (m *MockAppl) DeleteCategory(ctx Ctx, id int64) error
- func (m *MockAppl) DeleteIdentifier(ctx Ctx, id int64) error
- func (m *MockAppl) DeleteLocalization(ctx Ctx, id int64) error
- func (m *MockAppl) DeleteTranslation(ctx Ctx, id int64) error
- func (m *MockAppl) DeleteTranslationFile(ctx Ctx, id int64) error
- func (m *MockAppl) DisableSettingFirstLaunch(ctx Ctx) error
- func (m *MockAppl) EXPECT() *MockApplMockRecorder
- func (m *MockAppl) GetCategories(ctx Ctx) ([]*domain.Category, error)
- func (m *MockAppl) GetCurrentSettingState() domain.SettingConfiguration
- func (m *MockAppl) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) ([]*domain.GroupedTranslations, error)
- func (m *MockAppl) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*domain.Identifier, error)
- func (m *MockAppl) GetLocalizations(ctx Ctx) ([]*domain.Localization, error)
- func (m *MockAppl) GetStatistic(ctx Ctx) (*domain.Statistic, error)
- func (m *MockAppl) GetSupportedLanguages(ctx Ctx) ([]*domain.Language, error)
- func (m *MockAppl) GetTranslation(ctx Ctx, locale, identifierName string) (*domain.Translation, error)
- func (m *MockAppl) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*domain.TranslationFile, error)
- func (m *MockAppl) GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*domain.Translation, error)
- func (m *MockAppl) GetUserByEmail(ctx Ctx, email string) (*domain.User, error)
- func (m *MockAppl) GetUserByID(ctx Ctx, userID int64) (*domain.User, error)
- func (m *MockAppl) GetUserByUUID(ctx Ctx, uuid string) (*domain.User, error)
- func (m *MockAppl) GetUsers(ctx Ctx) ([]*domain.User, error)
- func (m *MockAppl) GetVersion(ctx Ctx, localizationID, platform int64) ([]*domain.Version, error)
- func (m *MockAppl) HealthCheck(arg0 Ctx) (interface{}, error)
- func (m *MockAppl) LogoutUser(ctx Ctx, token string) error
- func (m *MockAppl) RegisterUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*domain.User, error)
- func (m *MockAppl) SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error
- func (m *MockAppl) SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error
- func (m *MockAppl) Translate(ctx Ctx, text string, source, target language.Tag) (string, error)
- func (m *MockAppl) UpdateCategory(ctx Ctx, id int64, name string) error
- func (m *MockAppl) UpdateIdentifier(ctx Ctx, id, categoryID, parentID int64, ...) error
- func (m *MockAppl) UpdatePassword(ctx Ctx, userID int64, changePassword domain.ChangePassword) error
- func (m *MockAppl) UpdateProfile(ctx Ctx, userID int64, email, firstName, secondName string, role, status int64) error
- func (m *MockAppl) UpdateStatus(ctx Ctx, userID, status int64) error
- func (m *MockAppl) UpdateStatusTranslation(ctx Ctx, id, status int64) error
- func (m *MockAppl) UpdateTranslation(ctx Ctx, id int64, singular, plural string) error
- type MockApplMockRecorder
- func (mr *MockApplMockRecorder) AuthorizeUser(ctx, email, password interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) CreateAutoTranslationByID(ctx, id interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) CreateCategory(ctx, name interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) CreateIdentifier(...) *gomock.Call
- func (mr *MockApplMockRecorder) CreateLocalization(ctx, creatorID, name, code interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) CreateTranslation(ctx, creatorID, localizationID, identifierID, singular, plural interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) CreateTranslationFile(ctx, platform, storageType, creatorID, localizationID interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) DeleteCategory(ctx, id interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) DeleteIdentifier(ctx, id interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) DeleteLocalization(ctx, id interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) DeleteTranslation(ctx, id interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) DeleteTranslationFile(ctx, id interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) DisableSettingFirstLaunch(ctx interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetCategories(ctx interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetCurrentSettingState() *gomock.Call
- func (mr *MockApplMockRecorder) GetGroupedTranslations(ctx, f interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetIdentifiers(ctx, f interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetLocalizations(ctx interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetStatistic(ctx interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetSupportedLanguages(ctx interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetTranslation(ctx, locale, identifierName interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetTranslationFiles(ctx, f interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetTranslations(ctx, f interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetUserByUUID(ctx, uuid interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetUsers(ctx interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) GetVersion(ctx, localizationID, platform interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) LogoutUser(ctx, token interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) RegisterUser(ctx, email, password, firstName, secondName, role interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) SetStorageConfiguration(ctx, data interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) SetTranslationConfiguration(ctx, data interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) Translate(ctx, text, source, target interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) UpdateCategory(ctx, id, name interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) UpdateIdentifier(...) *gomock.Call
- func (mr *MockApplMockRecorder) UpdatePassword(ctx, userID, changePassword interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) UpdateProfile(ctx, userID, email, firstName, secondName, role, status interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) UpdateStatus(ctx, userID, status interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) UpdateStatusTranslation(ctx, id, status interface{}) *gomock.Call
- func (mr *MockApplMockRecorder) UpdateTranslation(ctx, id, singular, plural interface{}) *gomock.Call
- type MockAuth
- type MockAuthMockRecorder
- type MockPassword
- type MockPasswordMockRecorder
- type MockRepo
- func (m *MockRepo) CreateCategory(ctx Ctx, name string) error
- func (m *MockRepo) CreateIdentifier(ctx Ctx, createID, categoryID, parentID int64, ...) (int64, error)
- func (m *MockRepo) CreateLocalization(ctx Ctx, creatorID int64, locale, languageName string) (*dao.Localization, error)
- func (m *MockRepo) CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, ...) error
- func (m *MockRepo) CreateTranslationFile(ctx Ctx, name, path, s3fileID, s3bucket string, ...) error
- func (m *MockRepo) CreateUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*dao.User, error)
- func (m *MockRepo) DeleteCategory(ctx Ctx, id int64) error
- func (m *MockRepo) DeleteIdentifier(ctx Ctx, id int64) error
- func (m *MockRepo) DeleteLocalization(ctx Ctx, id int64) error
- func (m *MockRepo) DeleteSession(ctx Ctx, token AccessToken) error
- func (m *MockRepo) DeleteTranslation(ctx Ctx, id int64) error
- func (m *MockRepo) DeleteTranslationFile(ctx Ctx, id int64) error
- func (m *MockRepo) EXPECT() *MockRepoMockRecorder
- func (m *MockRepo) GetCategories(ctx Ctx) ([]*dao.Category, error)
- func (m *MockRepo) GetDB() *sqlx.DB
- func (m *MockRepo) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) (map[string][]*dao.Translation, error)
- func (m *MockRepo) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*dao.Identifier, error)
- func (m *MockRepo) GetLanguages(ctx Ctx) ([]*dao.Language, error)
- func (m *MockRepo) GetLocalization(ctx Ctx, id int64) (*dao.Localization, error)
- func (m *MockRepo) GetLocalizations(ctx Ctx) ([]*dao.Localization, error)
- func (m *MockRepo) GetStatistic(ctx Ctx) (*dao.Statistic, error)
- func (m *MockRepo) GetTranslation(ctx Ctx, locale, identifierName string) (*dao.Translation, error)
- func (m *MockRepo) GetTranslationByID(ctx Ctx, id int64) (*dao.Translation, error)
- func (m *MockRepo) GetTranslationFile(ctx Ctx, id int64) (*dao.TranslationFile, error)
- func (m *MockRepo) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*dao.TranslationFile, error)
- func (m *MockRepo) GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*dao.Translation, error)
- func (m *MockRepo) GetUserByEmail(email string) (*dao.User, error)
- func (m *MockRepo) GetUserByID(id int64) (*dao.User, error)
- func (m *MockRepo) GetUserByUserUUID(userUUID string) (*dao.User, error)
- func (m *MockRepo) GetUsers(ctx Ctx) ([]*dao.User, error)
- func (m *MockRepo) GetVersionFromTranslationFiles(ctx Ctx, f filter.VersionTranslationFilesFilter) ([]*dao.Version, error)
- func (m *MockRepo) GetVersionFromTranslations(ctx Ctx, f filter.VersionTranslationsFilter) ([]*dao.Version, error)
- func (m *MockRepo) SaveSession(ctx Ctx, userID int64, token AccessToken) error
- func (m *MockRepo) SessionByAccessToken(ctx Ctx, token AccessToken) (*dao.UserSession, error)
- func (m *MockRepo) UpdateCategory(ctx Ctx, id int64, name string) error
- func (m *MockRepo) UpdateIdentifier(ctx Ctx, id, categoryID, parentID int64, ...) error
- func (m *MockRepo) UpdatePassword(ctx Ctx, userID int64, passwordHash string) error
- func (m *MockRepo) UpdateProfile(ctx Ctx, userID int64, email, firstName, secondName string, role, status int64) error
- func (m *MockRepo) UpdateStatus(ctx Ctx, userID, status int64) error
- func (m *MockRepo) UpdateStatusTranslation(ctx Ctx, id, status int64) error
- func (m *MockRepo) UpdateTranslation(ctx Ctx, id int64, singular, plural string) error
- func (m *MockRepo) UpdateTranslationWithMeta(ctx Ctx, localizationID, identifierID int64, singular, plural string) error
- type MockRepoMockRecorder
- func (mr *MockRepoMockRecorder) CreateCategory(ctx, name interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) CreateIdentifier(...) *gomock.Call
- func (mr *MockRepoMockRecorder) CreateLocalization(ctx, creatorID, locale, languageName interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) CreateTranslation(ctx, creatorID, localizationID, identifierID, singular, plural interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) CreateTranslationFile(...) *gomock.Call
- func (mr *MockRepoMockRecorder) CreateUser(ctx, email, password, firstName, secondName, role interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteCategory(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteIdentifier(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteLocalization(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteSession(ctx, token interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteTranslation(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteTranslationFile(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetCategories(ctx interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetDB() *gomock.Call
- func (mr *MockRepoMockRecorder) GetGroupedTranslations(ctx, f interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetIdentifiers(ctx, f interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetLanguages(ctx interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetLocalization(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetLocalizations(ctx interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetStatistic(ctx interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetTranslation(ctx, locale, identifierName interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetTranslationByID(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetTranslationFile(ctx, id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetTranslationFiles(ctx, f interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetTranslations(ctx, f interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetUserByEmail(email interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetUserByID(id interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetUserByUserUUID(userUUID interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetUsers(ctx interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetVersionFromTranslationFiles(ctx, f interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) GetVersionFromTranslations(ctx, f interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) SaveSession(ctx, userID, token interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) SessionByAccessToken(ctx, token interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateCategory(ctx, id, name interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateIdentifier(...) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdatePassword(ctx, userID, passwordHash interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateProfile(ctx, userID, email, firstName, secondName, role, status interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateStatus(ctx, userID, status interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateStatusTranslation(ctx, id, status interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateTranslation(ctx, id, singular, plural interface{}) *gomock.Call
- func (mr *MockRepoMockRecorder) UpdateTranslationWithMeta(ctx, localizationID, identifierID, singular, plural interface{}) *gomock.Call
- type MockSettingRepo
- func (m *MockSettingRepo) DisableSettingFirstLaunch(ctx Ctx) error
- func (m *MockSettingRepo) EXPECT() *MockSettingRepoMockRecorder
- func (m *MockSettingRepo) GetCurrentSettingState() domain.SettingConfiguration
- func (m *MockSettingRepo) SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error
- func (m *MockSettingRepo) SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error
- type MockSettingRepoMockRecorder
- func (mr *MockSettingRepoMockRecorder) DisableSettingFirstLaunch(ctx interface{}) *gomock.Call
- func (mr *MockSettingRepoMockRecorder) GetCurrentSettingState() *gomock.Call
- func (mr *MockSettingRepoMockRecorder) SetStorageConfiguration(ctx, data interface{}) *gomock.Call
- func (mr *MockSettingRepoMockRecorder) SetTranslationConfiguration(ctx, data interface{}) *gomock.Call
- type MockStorage
- type MockStorageMockRecorder
- type MockTranslation
- type MockTranslationMockRecorder
- type Password
- type Repo
- type SettingRepo
- type Svc
- type UserSession
Constants ¶
This section is empty.
Variables ¶
var ( ErrNotFound = errors.New("entity not found") ErrEmailIsUsed = errors.New("email already used") ErrWrongPassword = errors.New("wrong password") ErrUserNotActive = errors.New("user not active") ErrUserIsBanned = errors.New("user is banned") ErrPasswordNotCorrect = errors.New("password is not correct") ErrAutoTranslationDisable = errors.New("auto translation disable") )
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken = string
type Appl ¶
type Appl interface { AuthorizeUser(ctx Ctx, email, password string) (AccessToken, *domain.User, error) RegisterUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*domain.User, error) GetUserByUUID(ctx Ctx, uuid string) (*domain.User, error) GetUserByID(ctx Ctx, userID int64) (*domain.User, error) GetUserByEmail(ctx Ctx, email string) (*domain.User, error) LogoutUser(ctx Ctx, token string) error UpdateStatus(ctx Ctx, userID, status int64) error UpdatePassword(ctx Ctx, userID int64, changePassword domain.ChangePassword) error UpdateProfile(ctx Ctx, userID int64, email, firstName, secondName string, role, status int64) error GetUsers(ctx Ctx) ([]*domain.User, error) CreateLocalization(ctx Ctx, creatorID int64, name, code string) error GetLocalizations(ctx Ctx) ([]*domain.Localization, error) DeleteLocalization(ctx Ctx, id int64) error CreateIdentifier( ctx Ctx, creatorID, categoryID, parentID int64, name, description, textSingular, textPlural string, platforms []string, ) error GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*domain.Identifier, error) DeleteIdentifier(ctx Ctx, id int64) error UpdateIdentifier( ctx Ctx, id, categoryID, parentID int64, name, description, textSingular, textPlural string, platforms []string, ) error CreateCategory(ctx Ctx, name string) error GetCategories(ctx Ctx) ([]*domain.Category, error) DeleteCategory(ctx Ctx, id int64) error UpdateCategory(ctx Ctx, id int64, name string) error CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, singular, plural string) error GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*domain.Translation, error) DeleteTranslation(ctx Ctx, id int64) error UpdateTranslation(ctx Ctx, id int64, singular, plural string) error UpdateStatusTranslation(ctx Ctx, id, status int64) error GetTranslation(ctx Ctx, locale, identifierName string) (*domain.Translation, error) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) ([]*domain.GroupedTranslations, error) CreateTranslationFile(ctx Ctx, platform, storageType string, creatorID, localizationID int64) error GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*domain.TranslationFile, error) DeleteTranslationFile(ctx Ctx, id int64) error GetStatistic(ctx Ctx) (*domain.Statistic, error) GetVersion(ctx Ctx, localizationID, platform int64) ([]*domain.Version, error) GetCurrentSettingState() domain.SettingConfiguration SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error DisableSettingFirstLaunch(ctx Ctx) error GetSupportedLanguages(ctx Ctx) ([]*domain.Language, error) Translate(ctx Ctx, text string, source, target language.Tag) (string, error) CreateAutoTranslationByID(ctx Ctx, id int64) error HealthCheck(Ctx) (interface{}, error) }
type MockAppl ¶
type MockAppl struct {
// contains filtered or unexported fields
}
MockAppl is a mock of Appl interface.
func NewMockAppl ¶
func NewMockAppl(ctrl *gomock.Controller) *MockAppl
NewMockAppl creates a new mock instance.
func (*MockAppl) AuthorizeUser ¶
func (m *MockAppl) AuthorizeUser(ctx Ctx, email, password string) (AccessToken, *domain.User, error)
AuthorizeUser mocks base method.
func (*MockAppl) CreateAutoTranslationByID ¶
CreateAutoTranslationByID mocks base method.
func (*MockAppl) CreateCategory ¶
CreateCategory mocks base method.
func (*MockAppl) CreateIdentifier ¶
func (m *MockAppl) CreateIdentifier(ctx Ctx, creatorID, categoryID, parentID int64, name, description, textSingular, textPlural string, platforms []string) error
CreateIdentifier mocks base method.
func (*MockAppl) CreateLocalization ¶
CreateLocalization mocks base method.
func (*MockAppl) CreateTranslation ¶
func (m *MockAppl) CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, singular, plural string) error
CreateTranslation mocks base method.
func (*MockAppl) CreateTranslationFile ¶
func (m *MockAppl) CreateTranslationFile(ctx Ctx, platform, storageType string, creatorID, localizationID int64) error
CreateTranslationFile mocks base method.
func (*MockAppl) DeleteCategory ¶
DeleteCategory mocks base method.
func (*MockAppl) DeleteIdentifier ¶
DeleteIdentifier mocks base method.
func (*MockAppl) DeleteLocalization ¶
DeleteLocalization mocks base method.
func (*MockAppl) DeleteTranslation ¶
DeleteTranslation mocks base method.
func (*MockAppl) DeleteTranslationFile ¶
DeleteTranslationFile mocks base method.
func (*MockAppl) DisableSettingFirstLaunch ¶
DisableSettingFirstLaunch mocks base method.
func (*MockAppl) EXPECT ¶
func (m *MockAppl) EXPECT() *MockApplMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAppl) GetCategories ¶
GetCategories mocks base method.
func (*MockAppl) GetCurrentSettingState ¶
func (m *MockAppl) GetCurrentSettingState() domain.SettingConfiguration
GetCurrentSettingState mocks base method.
func (*MockAppl) GetGroupedTranslations ¶
func (m *MockAppl) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) ([]*domain.GroupedTranslations, error)
GetGroupedTranslations mocks base method.
func (*MockAppl) GetIdentifiers ¶
func (m *MockAppl) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*domain.Identifier, error)
GetIdentifiers mocks base method.
func (*MockAppl) GetLocalizations ¶
func (m *MockAppl) GetLocalizations(ctx Ctx) ([]*domain.Localization, error)
GetLocalizations mocks base method.
func (*MockAppl) GetStatistic ¶
GetStatistic mocks base method.
func (*MockAppl) GetSupportedLanguages ¶
GetSupportedLanguages mocks base method.
func (*MockAppl) GetTranslation ¶
func (m *MockAppl) GetTranslation(ctx Ctx, locale, identifierName string) (*domain.Translation, error)
GetTranslation mocks base method.
func (*MockAppl) GetTranslationFiles ¶
func (m *MockAppl) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*domain.TranslationFile, error)
GetTranslationFiles mocks base method.
func (*MockAppl) GetTranslations ¶
func (m *MockAppl) GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*domain.Translation, error)
GetTranslations mocks base method.
func (*MockAppl) GetUserByEmail ¶
GetUserByEmail mocks base method.
func (*MockAppl) GetUserByID ¶
GetUserByID mocks base method.
func (*MockAppl) GetUserByUUID ¶
GetUserByUUID mocks base method.
func (*MockAppl) GetVersion ¶
GetVersion mocks base method.
func (*MockAppl) HealthCheck ¶
HealthCheck mocks base method.
func (*MockAppl) LogoutUser ¶
LogoutUser mocks base method.
func (*MockAppl) RegisterUser ¶
func (m *MockAppl) RegisterUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*domain.User, error)
RegisterUser mocks base method.
func (*MockAppl) SetStorageConfiguration ¶
func (m *MockAppl) SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error
SetStorageConfiguration mocks base method.
func (*MockAppl) SetTranslationConfiguration ¶
func (m *MockAppl) SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error
SetTranslationConfiguration mocks base method.
func (*MockAppl) UpdateCategory ¶
UpdateCategory mocks base method.
func (*MockAppl) UpdateIdentifier ¶
func (m *MockAppl) UpdateIdentifier(ctx Ctx, id, categoryID, parentID int64, name, description, textSingular, textPlural string, platforms []string) error
UpdateIdentifier mocks base method.
func (*MockAppl) UpdatePassword ¶
func (m *MockAppl) UpdatePassword(ctx Ctx, userID int64, changePassword domain.ChangePassword) error
UpdatePassword mocks base method.
func (*MockAppl) UpdateProfile ¶
func (m *MockAppl) UpdateProfile(ctx Ctx, userID int64, email, firstName, secondName string, role, status int64) error
UpdateProfile mocks base method.
func (*MockAppl) UpdateStatus ¶
UpdateStatus mocks base method.
func (*MockAppl) UpdateStatusTranslation ¶
UpdateStatusTranslation mocks base method.
type MockApplMockRecorder ¶
type MockApplMockRecorder struct {
// contains filtered or unexported fields
}
MockApplMockRecorder is the mock recorder for MockAppl.
func (*MockApplMockRecorder) AuthorizeUser ¶
func (mr *MockApplMockRecorder) AuthorizeUser(ctx, email, password interface{}) *gomock.Call
AuthorizeUser indicates an expected call of AuthorizeUser.
func (*MockApplMockRecorder) CreateAutoTranslationByID ¶
func (mr *MockApplMockRecorder) CreateAutoTranslationByID(ctx, id interface{}) *gomock.Call
CreateAutoTranslationByID indicates an expected call of CreateAutoTranslationByID.
func (*MockApplMockRecorder) CreateCategory ¶
func (mr *MockApplMockRecorder) CreateCategory(ctx, name interface{}) *gomock.Call
CreateCategory indicates an expected call of CreateCategory.
func (*MockApplMockRecorder) CreateIdentifier ¶
func (mr *MockApplMockRecorder) CreateIdentifier(ctx, creatorID, categoryID, parentID, name, description, textSingular, textPlural, platforms interface{}) *gomock.Call
CreateIdentifier indicates an expected call of CreateIdentifier.
func (*MockApplMockRecorder) CreateLocalization ¶
func (mr *MockApplMockRecorder) CreateLocalization(ctx, creatorID, name, code interface{}) *gomock.Call
CreateLocalization indicates an expected call of CreateLocalization.
func (*MockApplMockRecorder) CreateTranslation ¶
func (mr *MockApplMockRecorder) CreateTranslation(ctx, creatorID, localizationID, identifierID, singular, plural interface{}) *gomock.Call
CreateTranslation indicates an expected call of CreateTranslation.
func (*MockApplMockRecorder) CreateTranslationFile ¶
func (mr *MockApplMockRecorder) CreateTranslationFile(ctx, platform, storageType, creatorID, localizationID interface{}) *gomock.Call
CreateTranslationFile indicates an expected call of CreateTranslationFile.
func (*MockApplMockRecorder) DeleteCategory ¶
func (mr *MockApplMockRecorder) DeleteCategory(ctx, id interface{}) *gomock.Call
DeleteCategory indicates an expected call of DeleteCategory.
func (*MockApplMockRecorder) DeleteIdentifier ¶
func (mr *MockApplMockRecorder) DeleteIdentifier(ctx, id interface{}) *gomock.Call
DeleteIdentifier indicates an expected call of DeleteIdentifier.
func (*MockApplMockRecorder) DeleteLocalization ¶
func (mr *MockApplMockRecorder) DeleteLocalization(ctx, id interface{}) *gomock.Call
DeleteLocalization indicates an expected call of DeleteLocalization.
func (*MockApplMockRecorder) DeleteTranslation ¶
func (mr *MockApplMockRecorder) DeleteTranslation(ctx, id interface{}) *gomock.Call
DeleteTranslation indicates an expected call of DeleteTranslation.
func (*MockApplMockRecorder) DeleteTranslationFile ¶
func (mr *MockApplMockRecorder) DeleteTranslationFile(ctx, id interface{}) *gomock.Call
DeleteTranslationFile indicates an expected call of DeleteTranslationFile.
func (*MockApplMockRecorder) DisableSettingFirstLaunch ¶
func (mr *MockApplMockRecorder) DisableSettingFirstLaunch(ctx interface{}) *gomock.Call
DisableSettingFirstLaunch indicates an expected call of DisableSettingFirstLaunch.
func (*MockApplMockRecorder) GetCategories ¶
func (mr *MockApplMockRecorder) GetCategories(ctx interface{}) *gomock.Call
GetCategories indicates an expected call of GetCategories.
func (*MockApplMockRecorder) GetCurrentSettingState ¶
func (mr *MockApplMockRecorder) GetCurrentSettingState() *gomock.Call
GetCurrentSettingState indicates an expected call of GetCurrentSettingState.
func (*MockApplMockRecorder) GetGroupedTranslations ¶
func (mr *MockApplMockRecorder) GetGroupedTranslations(ctx, f interface{}) *gomock.Call
GetGroupedTranslations indicates an expected call of GetGroupedTranslations.
func (*MockApplMockRecorder) GetIdentifiers ¶
func (mr *MockApplMockRecorder) GetIdentifiers(ctx, f interface{}) *gomock.Call
GetIdentifiers indicates an expected call of GetIdentifiers.
func (*MockApplMockRecorder) GetLocalizations ¶
func (mr *MockApplMockRecorder) GetLocalizations(ctx interface{}) *gomock.Call
GetLocalizations indicates an expected call of GetLocalizations.
func (*MockApplMockRecorder) GetStatistic ¶
func (mr *MockApplMockRecorder) GetStatistic(ctx interface{}) *gomock.Call
GetStatistic indicates an expected call of GetStatistic.
func (*MockApplMockRecorder) GetSupportedLanguages ¶
func (mr *MockApplMockRecorder) GetSupportedLanguages(ctx interface{}) *gomock.Call
GetSupportedLanguages indicates an expected call of GetSupportedLanguages.
func (*MockApplMockRecorder) GetTranslation ¶
func (mr *MockApplMockRecorder) GetTranslation(ctx, locale, identifierName interface{}) *gomock.Call
GetTranslation indicates an expected call of GetTranslation.
func (*MockApplMockRecorder) GetTranslationFiles ¶
func (mr *MockApplMockRecorder) GetTranslationFiles(ctx, f interface{}) *gomock.Call
GetTranslationFiles indicates an expected call of GetTranslationFiles.
func (*MockApplMockRecorder) GetTranslations ¶
func (mr *MockApplMockRecorder) GetTranslations(ctx, f interface{}) *gomock.Call
GetTranslations indicates an expected call of GetTranslations.
func (*MockApplMockRecorder) GetUserByEmail ¶
func (mr *MockApplMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call
GetUserByEmail indicates an expected call of GetUserByEmail.
func (*MockApplMockRecorder) GetUserByID ¶
func (mr *MockApplMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockApplMockRecorder) GetUserByUUID ¶
func (mr *MockApplMockRecorder) GetUserByUUID(ctx, uuid interface{}) *gomock.Call
GetUserByUUID indicates an expected call of GetUserByUUID.
func (*MockApplMockRecorder) GetUsers ¶
func (mr *MockApplMockRecorder) GetUsers(ctx interface{}) *gomock.Call
GetUsers indicates an expected call of GetUsers.
func (*MockApplMockRecorder) GetVersion ¶
func (mr *MockApplMockRecorder) GetVersion(ctx, localizationID, platform interface{}) *gomock.Call
GetVersion indicates an expected call of GetVersion.
func (*MockApplMockRecorder) HealthCheck ¶
func (mr *MockApplMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockApplMockRecorder) LogoutUser ¶
func (mr *MockApplMockRecorder) LogoutUser(ctx, token interface{}) *gomock.Call
LogoutUser indicates an expected call of LogoutUser.
func (*MockApplMockRecorder) RegisterUser ¶
func (mr *MockApplMockRecorder) RegisterUser(ctx, email, password, firstName, secondName, role interface{}) *gomock.Call
RegisterUser indicates an expected call of RegisterUser.
func (*MockApplMockRecorder) SetStorageConfiguration ¶
func (mr *MockApplMockRecorder) SetStorageConfiguration(ctx, data interface{}) *gomock.Call
SetStorageConfiguration indicates an expected call of SetStorageConfiguration.
func (*MockApplMockRecorder) SetTranslationConfiguration ¶
func (mr *MockApplMockRecorder) SetTranslationConfiguration(ctx, data interface{}) *gomock.Call
SetTranslationConfiguration indicates an expected call of SetTranslationConfiguration.
func (*MockApplMockRecorder) Translate ¶
func (mr *MockApplMockRecorder) Translate(ctx, text, source, target interface{}) *gomock.Call
Translate indicates an expected call of Translate.
func (*MockApplMockRecorder) UpdateCategory ¶
func (mr *MockApplMockRecorder) UpdateCategory(ctx, id, name interface{}) *gomock.Call
UpdateCategory indicates an expected call of UpdateCategory.
func (*MockApplMockRecorder) UpdateIdentifier ¶
func (mr *MockApplMockRecorder) UpdateIdentifier(ctx, id, categoryID, parentID, name, description, textSingular, textPlural, platforms interface{}) *gomock.Call
UpdateIdentifier indicates an expected call of UpdateIdentifier.
func (*MockApplMockRecorder) UpdatePassword ¶
func (mr *MockApplMockRecorder) UpdatePassword(ctx, userID, changePassword interface{}) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.
func (*MockApplMockRecorder) UpdateProfile ¶
func (mr *MockApplMockRecorder) UpdateProfile(ctx, userID, email, firstName, secondName, role, status interface{}) *gomock.Call
UpdateProfile indicates an expected call of UpdateProfile.
func (*MockApplMockRecorder) UpdateStatus ¶
func (mr *MockApplMockRecorder) UpdateStatus(ctx, userID, status interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockApplMockRecorder) UpdateStatusTranslation ¶
func (mr *MockApplMockRecorder) UpdateStatusTranslation(ctx, id, status interface{}) *gomock.Call
UpdateStatusTranslation indicates an expected call of UpdateStatusTranslation.
func (*MockApplMockRecorder) UpdateTranslation ¶
func (mr *MockApplMockRecorder) UpdateTranslation(ctx, id, singular, plural interface{}) *gomock.Call
UpdateTranslation indicates an expected call of UpdateTranslation.
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) GenerateAuthToken ¶
GenerateAuthToken mocks base method.
func (*MockAuth) IsAuthorized ¶
func (m *MockAuth) IsAuthorized(token string) (*UserSession, error)
IsAuthorized mocks base method.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) GenerateAuthToken ¶
func (mr *MockAuthMockRecorder) GenerateAuthToken(userUUID interface{}) *gomock.Call
GenerateAuthToken indicates an expected call of GenerateAuthToken.
func (*MockAuthMockRecorder) IsAuthorized ¶
func (mr *MockAuthMockRecorder) IsAuthorized(token interface{}) *gomock.Call
IsAuthorized indicates an expected call of IsAuthorized.
type MockPassword ¶
type MockPassword struct {
// contains filtered or unexported fields
}
MockPassword is a mock of Password interface.
func NewMockPassword ¶
func NewMockPassword(ctrl *gomock.Controller) *MockPassword
NewMockPassword creates a new mock instance.
func (*MockPassword) Compare ¶
func (m *MockPassword) Compare(hashedPassword, password []byte) bool
Compare mocks base method.
func (*MockPassword) EXPECT ¶
func (m *MockPassword) EXPECT() *MockPasswordMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPassword) Generate ¶
func (m *MockPassword) Generate(length int) string
Generate mocks base method.
type MockPasswordMockRecorder ¶
type MockPasswordMockRecorder struct {
// contains filtered or unexported fields
}
MockPasswordMockRecorder is the mock recorder for MockPassword.
func (*MockPasswordMockRecorder) Compare ¶
func (mr *MockPasswordMockRecorder) Compare(hashedPassword, password interface{}) *gomock.Call
Compare indicates an expected call of Compare.
func (*MockPasswordMockRecorder) Generate ¶
func (mr *MockPasswordMockRecorder) Generate(length interface{}) *gomock.Call
Generate indicates an expected call of Generate.
func (*MockPasswordMockRecorder) Hashing ¶
func (mr *MockPasswordMockRecorder) Hashing(password interface{}) *gomock.Call
Hashing indicates an expected call of Hashing.
type MockRepo ¶
type MockRepo struct {
// contains filtered or unexported fields
}
MockRepo is a mock of Repo interface.
func NewMockRepo ¶
func NewMockRepo(ctrl *gomock.Controller) *MockRepo
NewMockRepo creates a new mock instance.
func (*MockRepo) CreateCategory ¶
CreateCategory mocks base method.
func (*MockRepo) CreateIdentifier ¶
func (m *MockRepo) CreateIdentifier(ctx Ctx, createID, categoryID, parentID int64, name, description, textSingular, textPlural, platforms string) (int64, error)
CreateIdentifier mocks base method.
func (*MockRepo) CreateLocalization ¶
func (m *MockRepo) CreateLocalization(ctx Ctx, creatorID int64, locale, languageName string) (*dao.Localization, error)
CreateLocalization mocks base method.
func (*MockRepo) CreateTranslation ¶
func (m *MockRepo) CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, singular, plural string) error
CreateTranslation mocks base method.
func (*MockRepo) CreateTranslationFile ¶
func (m *MockRepo) CreateTranslationFile(ctx Ctx, name, path, s3fileID, s3bucket string, platform, storageType, creatorID, localizationID int64) error
CreateTranslationFile mocks base method.
func (*MockRepo) CreateUser ¶
func (m *MockRepo) CreateUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*dao.User, error)
CreateUser mocks base method.
func (*MockRepo) DeleteCategory ¶
DeleteCategory mocks base method.
func (*MockRepo) DeleteIdentifier ¶
DeleteIdentifier mocks base method.
func (*MockRepo) DeleteLocalization ¶
DeleteLocalization mocks base method.
func (*MockRepo) DeleteSession ¶
func (m *MockRepo) DeleteSession(ctx Ctx, token AccessToken) error
DeleteSession mocks base method.
func (*MockRepo) DeleteTranslation ¶
DeleteTranslation mocks base method.
func (*MockRepo) DeleteTranslationFile ¶
DeleteTranslationFile mocks base method.
func (*MockRepo) EXPECT ¶
func (m *MockRepo) EXPECT() *MockRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepo) GetCategories ¶
GetCategories mocks base method.
func (*MockRepo) GetGroupedTranslations ¶
func (m *MockRepo) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) (map[string][]*dao.Translation, error)
GetGroupedTranslations mocks base method.
func (*MockRepo) GetIdentifiers ¶
func (m *MockRepo) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*dao.Identifier, error)
GetIdentifiers mocks base method.
func (*MockRepo) GetLanguages ¶
GetLanguages mocks base method.
func (*MockRepo) GetLocalization ¶
GetLocalization mocks base method.
func (*MockRepo) GetLocalizations ¶
func (m *MockRepo) GetLocalizations(ctx Ctx) ([]*dao.Localization, error)
GetLocalizations mocks base method.
func (*MockRepo) GetStatistic ¶
GetStatistic mocks base method.
func (*MockRepo) GetTranslation ¶
GetTranslation mocks base method.
func (*MockRepo) GetTranslationByID ¶
GetTranslationByID mocks base method.
func (*MockRepo) GetTranslationFile ¶
GetTranslationFile mocks base method.
func (*MockRepo) GetTranslationFiles ¶
func (m *MockRepo) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*dao.TranslationFile, error)
GetTranslationFiles mocks base method.
func (*MockRepo) GetTranslations ¶
func (m *MockRepo) GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*dao.Translation, error)
GetTranslations mocks base method.
func (*MockRepo) GetUserByEmail ¶
GetUserByEmail mocks base method.
func (*MockRepo) GetUserByID ¶
GetUserByID mocks base method.
func (*MockRepo) GetUserByUserUUID ¶
GetUserByUserUUID mocks base method.
func (*MockRepo) GetVersionFromTranslationFiles ¶
func (m *MockRepo) GetVersionFromTranslationFiles(ctx Ctx, f filter.VersionTranslationFilesFilter) ([]*dao.Version, error)
GetVersionFromTranslationFiles mocks base method.
func (*MockRepo) GetVersionFromTranslations ¶
func (m *MockRepo) GetVersionFromTranslations(ctx Ctx, f filter.VersionTranslationsFilter) ([]*dao.Version, error)
GetVersionFromTranslations mocks base method.
func (*MockRepo) SaveSession ¶
func (m *MockRepo) SaveSession(ctx Ctx, userID int64, token AccessToken) error
SaveSession mocks base method.
func (*MockRepo) SessionByAccessToken ¶
func (m *MockRepo) SessionByAccessToken(ctx Ctx, token AccessToken) (*dao.UserSession, error)
SessionByAccessToken mocks base method.
func (*MockRepo) UpdateCategory ¶
UpdateCategory mocks base method.
func (*MockRepo) UpdateIdentifier ¶
func (m *MockRepo) UpdateIdentifier(ctx Ctx, id, categoryID, parentID int64, name, description, textSingular, textPlural, platforms string) error
UpdateIdentifier mocks base method.
func (*MockRepo) UpdatePassword ¶
UpdatePassword mocks base method.
func (*MockRepo) UpdateProfile ¶
func (m *MockRepo) UpdateProfile(ctx Ctx, userID int64, email, firstName, secondName string, role, status int64) error
UpdateProfile mocks base method.
func (*MockRepo) UpdateStatus ¶
UpdateStatus mocks base method.
func (*MockRepo) UpdateStatusTranslation ¶
UpdateStatusTranslation mocks base method.
func (*MockRepo) UpdateTranslation ¶
UpdateTranslation mocks base method.
type MockRepoMockRecorder ¶
type MockRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockRepoMockRecorder is the mock recorder for MockRepo.
func (*MockRepoMockRecorder) CreateCategory ¶
func (mr *MockRepoMockRecorder) CreateCategory(ctx, name interface{}) *gomock.Call
CreateCategory indicates an expected call of CreateCategory.
func (*MockRepoMockRecorder) CreateIdentifier ¶
func (mr *MockRepoMockRecorder) CreateIdentifier(ctx, createID, categoryID, parentID, name, description, textSingular, textPlural, platforms interface{}) *gomock.Call
CreateIdentifier indicates an expected call of CreateIdentifier.
func (*MockRepoMockRecorder) CreateLocalization ¶
func (mr *MockRepoMockRecorder) CreateLocalization(ctx, creatorID, locale, languageName interface{}) *gomock.Call
CreateLocalization indicates an expected call of CreateLocalization.
func (*MockRepoMockRecorder) CreateTranslation ¶
func (mr *MockRepoMockRecorder) CreateTranslation(ctx, creatorID, localizationID, identifierID, singular, plural interface{}) *gomock.Call
CreateTranslation indicates an expected call of CreateTranslation.
func (*MockRepoMockRecorder) CreateTranslationFile ¶
func (mr *MockRepoMockRecorder) CreateTranslationFile(ctx, name, path, s3fileID, s3bucket, platform, storageType, creatorID, localizationID interface{}) *gomock.Call
CreateTranslationFile indicates an expected call of CreateTranslationFile.
func (*MockRepoMockRecorder) CreateUser ¶
func (mr *MockRepoMockRecorder) CreateUser(ctx, email, password, firstName, secondName, role interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockRepoMockRecorder) DeleteCategory ¶
func (mr *MockRepoMockRecorder) DeleteCategory(ctx, id interface{}) *gomock.Call
DeleteCategory indicates an expected call of DeleteCategory.
func (*MockRepoMockRecorder) DeleteIdentifier ¶
func (mr *MockRepoMockRecorder) DeleteIdentifier(ctx, id interface{}) *gomock.Call
DeleteIdentifier indicates an expected call of DeleteIdentifier.
func (*MockRepoMockRecorder) DeleteLocalization ¶
func (mr *MockRepoMockRecorder) DeleteLocalization(ctx, id interface{}) *gomock.Call
DeleteLocalization indicates an expected call of DeleteLocalization.
func (*MockRepoMockRecorder) DeleteSession ¶
func (mr *MockRepoMockRecorder) DeleteSession(ctx, token interface{}) *gomock.Call
DeleteSession indicates an expected call of DeleteSession.
func (*MockRepoMockRecorder) DeleteTranslation ¶
func (mr *MockRepoMockRecorder) DeleteTranslation(ctx, id interface{}) *gomock.Call
DeleteTranslation indicates an expected call of DeleteTranslation.
func (*MockRepoMockRecorder) DeleteTranslationFile ¶
func (mr *MockRepoMockRecorder) DeleteTranslationFile(ctx, id interface{}) *gomock.Call
DeleteTranslationFile indicates an expected call of DeleteTranslationFile.
func (*MockRepoMockRecorder) GetCategories ¶
func (mr *MockRepoMockRecorder) GetCategories(ctx interface{}) *gomock.Call
GetCategories indicates an expected call of GetCategories.
func (*MockRepoMockRecorder) GetDB ¶
func (mr *MockRepoMockRecorder) GetDB() *gomock.Call
GetDB indicates an expected call of GetDB.
func (*MockRepoMockRecorder) GetGroupedTranslations ¶
func (mr *MockRepoMockRecorder) GetGroupedTranslations(ctx, f interface{}) *gomock.Call
GetGroupedTranslations indicates an expected call of GetGroupedTranslations.
func (*MockRepoMockRecorder) GetIdentifiers ¶
func (mr *MockRepoMockRecorder) GetIdentifiers(ctx, f interface{}) *gomock.Call
GetIdentifiers indicates an expected call of GetIdentifiers.
func (*MockRepoMockRecorder) GetLanguages ¶
func (mr *MockRepoMockRecorder) GetLanguages(ctx interface{}) *gomock.Call
GetLanguages indicates an expected call of GetLanguages.
func (*MockRepoMockRecorder) GetLocalization ¶
func (mr *MockRepoMockRecorder) GetLocalization(ctx, id interface{}) *gomock.Call
GetLocalization indicates an expected call of GetLocalization.
func (*MockRepoMockRecorder) GetLocalizations ¶
func (mr *MockRepoMockRecorder) GetLocalizations(ctx interface{}) *gomock.Call
GetLocalizations indicates an expected call of GetLocalizations.
func (*MockRepoMockRecorder) GetStatistic ¶
func (mr *MockRepoMockRecorder) GetStatistic(ctx interface{}) *gomock.Call
GetStatistic indicates an expected call of GetStatistic.
func (*MockRepoMockRecorder) GetTranslation ¶
func (mr *MockRepoMockRecorder) GetTranslation(ctx, locale, identifierName interface{}) *gomock.Call
GetTranslation indicates an expected call of GetTranslation.
func (*MockRepoMockRecorder) GetTranslationByID ¶
func (mr *MockRepoMockRecorder) GetTranslationByID(ctx, id interface{}) *gomock.Call
GetTranslationByID indicates an expected call of GetTranslationByID.
func (*MockRepoMockRecorder) GetTranslationFile ¶
func (mr *MockRepoMockRecorder) GetTranslationFile(ctx, id interface{}) *gomock.Call
GetTranslationFile indicates an expected call of GetTranslationFile.
func (*MockRepoMockRecorder) GetTranslationFiles ¶
func (mr *MockRepoMockRecorder) GetTranslationFiles(ctx, f interface{}) *gomock.Call
GetTranslationFiles indicates an expected call of GetTranslationFiles.
func (*MockRepoMockRecorder) GetTranslations ¶
func (mr *MockRepoMockRecorder) GetTranslations(ctx, f interface{}) *gomock.Call
GetTranslations indicates an expected call of GetTranslations.
func (*MockRepoMockRecorder) GetUserByEmail ¶
func (mr *MockRepoMockRecorder) GetUserByEmail(email interface{}) *gomock.Call
GetUserByEmail indicates an expected call of GetUserByEmail.
func (*MockRepoMockRecorder) GetUserByID ¶
func (mr *MockRepoMockRecorder) GetUserByID(id interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockRepoMockRecorder) GetUserByUserUUID ¶
func (mr *MockRepoMockRecorder) GetUserByUserUUID(userUUID interface{}) *gomock.Call
GetUserByUserUUID indicates an expected call of GetUserByUserUUID.
func (*MockRepoMockRecorder) GetUsers ¶
func (mr *MockRepoMockRecorder) GetUsers(ctx interface{}) *gomock.Call
GetUsers indicates an expected call of GetUsers.
func (*MockRepoMockRecorder) GetVersionFromTranslationFiles ¶
func (mr *MockRepoMockRecorder) GetVersionFromTranslationFiles(ctx, f interface{}) *gomock.Call
GetVersionFromTranslationFiles indicates an expected call of GetVersionFromTranslationFiles.
func (*MockRepoMockRecorder) GetVersionFromTranslations ¶
func (mr *MockRepoMockRecorder) GetVersionFromTranslations(ctx, f interface{}) *gomock.Call
GetVersionFromTranslations indicates an expected call of GetVersionFromTranslations.
func (*MockRepoMockRecorder) SaveSession ¶
func (mr *MockRepoMockRecorder) SaveSession(ctx, userID, token interface{}) *gomock.Call
SaveSession indicates an expected call of SaveSession.
func (*MockRepoMockRecorder) SessionByAccessToken ¶
func (mr *MockRepoMockRecorder) SessionByAccessToken(ctx, token interface{}) *gomock.Call
SessionByAccessToken indicates an expected call of SessionByAccessToken.
func (*MockRepoMockRecorder) UpdateCategory ¶
func (mr *MockRepoMockRecorder) UpdateCategory(ctx, id, name interface{}) *gomock.Call
UpdateCategory indicates an expected call of UpdateCategory.
func (*MockRepoMockRecorder) UpdateIdentifier ¶
func (mr *MockRepoMockRecorder) UpdateIdentifier(ctx, id, categoryID, parentID, name, description, textSingular, textPlural, platforms interface{}) *gomock.Call
UpdateIdentifier indicates an expected call of UpdateIdentifier.
func (*MockRepoMockRecorder) UpdatePassword ¶
func (mr *MockRepoMockRecorder) UpdatePassword(ctx, userID, passwordHash interface{}) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.
func (*MockRepoMockRecorder) UpdateProfile ¶
func (mr *MockRepoMockRecorder) UpdateProfile(ctx, userID, email, firstName, secondName, role, status interface{}) *gomock.Call
UpdateProfile indicates an expected call of UpdateProfile.
func (*MockRepoMockRecorder) UpdateStatus ¶
func (mr *MockRepoMockRecorder) UpdateStatus(ctx, userID, status interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockRepoMockRecorder) UpdateStatusTranslation ¶
func (mr *MockRepoMockRecorder) UpdateStatusTranslation(ctx, id, status interface{}) *gomock.Call
UpdateStatusTranslation indicates an expected call of UpdateStatusTranslation.
func (*MockRepoMockRecorder) UpdateTranslation ¶
func (mr *MockRepoMockRecorder) UpdateTranslation(ctx, id, singular, plural interface{}) *gomock.Call
UpdateTranslation indicates an expected call of UpdateTranslation.
func (*MockRepoMockRecorder) UpdateTranslationWithMeta ¶
func (mr *MockRepoMockRecorder) UpdateTranslationWithMeta(ctx, localizationID, identifierID, singular, plural interface{}) *gomock.Call
UpdateTranslationWithMeta indicates an expected call of UpdateTranslationWithMeta.
type MockSettingRepo ¶
type MockSettingRepo struct {
// contains filtered or unexported fields
}
MockSettingRepo is a mock of SettingRepo interface.
func NewMockSettingRepo ¶
func NewMockSettingRepo(ctrl *gomock.Controller) *MockSettingRepo
NewMockSettingRepo creates a new mock instance.
func (*MockSettingRepo) DisableSettingFirstLaunch ¶
func (m *MockSettingRepo) DisableSettingFirstLaunch(ctx Ctx) error
DisableSettingFirstLaunch mocks base method.
func (*MockSettingRepo) EXPECT ¶
func (m *MockSettingRepo) EXPECT() *MockSettingRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSettingRepo) GetCurrentSettingState ¶
func (m *MockSettingRepo) GetCurrentSettingState() domain.SettingConfiguration
GetCurrentSettingState mocks base method.
func (*MockSettingRepo) SetStorageConfiguration ¶
func (m *MockSettingRepo) SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error
SetStorageConfiguration mocks base method.
func (*MockSettingRepo) SetTranslationConfiguration ¶
func (m *MockSettingRepo) SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error
SetTranslationConfiguration mocks base method.
type MockSettingRepoMockRecorder ¶
type MockSettingRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockSettingRepoMockRecorder is the mock recorder for MockSettingRepo.
func (*MockSettingRepoMockRecorder) DisableSettingFirstLaunch ¶
func (mr *MockSettingRepoMockRecorder) DisableSettingFirstLaunch(ctx interface{}) *gomock.Call
DisableSettingFirstLaunch indicates an expected call of DisableSettingFirstLaunch.
func (*MockSettingRepoMockRecorder) GetCurrentSettingState ¶
func (mr *MockSettingRepoMockRecorder) GetCurrentSettingState() *gomock.Call
GetCurrentSettingState indicates an expected call of GetCurrentSettingState.
func (*MockSettingRepoMockRecorder) SetStorageConfiguration ¶
func (mr *MockSettingRepoMockRecorder) SetStorageConfiguration(ctx, data interface{}) *gomock.Call
SetStorageConfiguration indicates an expected call of SetStorageConfiguration.
func (*MockSettingRepoMockRecorder) SetTranslationConfiguration ¶
func (mr *MockSettingRepoMockRecorder) SetTranslationConfiguration(ctx, data interface{}) *gomock.Call
SetTranslationConfiguration indicates an expected call of SetTranslationConfiguration.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) Create ¶
func (m *MockStorage) Create(parameter storage.FileParameter) (*storage.File, error)
Create mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Create ¶
func (mr *MockStorageMockRecorder) Create(parameter interface{}) *gomock.Call
Create indicates an expected call of Create.
type MockTranslation ¶
type MockTranslation struct {
// contains filtered or unexported fields
}
MockTranslation is a mock of Translation interface.
func NewMockTranslation ¶
func NewMockTranslation(ctrl *gomock.Controller) *MockTranslation
NewMockTranslation creates a new mock instance.
func (*MockTranslation) EXPECT ¶
func (m *MockTranslation) EXPECT() *MockTranslationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTranslationMockRecorder ¶
type MockTranslationMockRecorder struct {
// contains filtered or unexported fields
}
MockTranslationMockRecorder is the mock recorder for MockTranslation.
func (*MockTranslationMockRecorder) Languages ¶
func (mr *MockTranslationMockRecorder) Languages(ctx interface{}) *gomock.Call
Languages indicates an expected call of Languages.
func (*MockTranslationMockRecorder) Translate ¶
func (mr *MockTranslationMockRecorder) Translate(ctx, text, source, target interface{}) *gomock.Call
Translate indicates an expected call of Translate.
type Repo ¶
type Repo interface { GetDB() *sqlx.DB CreateUser(ctx Ctx, email, password, firstName, secondName string, role int64) (*dao.User, error) UpdatePassword(ctx Ctx, userID int64, passwordHash string) error UpdateProfile(ctx Ctx, userID int64, email, firstName, secondName string, role, status int64) error GetUsers(ctx Ctx) ([]*dao.User, error) UpdateStatus(ctx Ctx, userID, status int64) error GetUserByUserUUID(userUUID string) (*dao.User, error) GetUserByEmail(email string) (*dao.User, error) GetUserByID(id int64) (*dao.User, error) SaveSession(ctx Ctx, userID int64, token AccessToken) error SessionByAccessToken(ctx Ctx, token AccessToken) (*dao.UserSession, error) DeleteSession(ctx Ctx, token AccessToken) error CreateLocalization(ctx Ctx, creatorID int64, locale, languageName string) (*dao.Localization, error) GetLocalization(ctx Ctx, id int64) (*dao.Localization, error) GetLocalizations(ctx Ctx) ([]*dao.Localization, error) DeleteLocalization(ctx Ctx, id int64) error CreateIdentifier( ctx Ctx, createID, categoryID, parentID int64, name, description, textSingular, textPlural, platforms string, ) (int64, error) GetIdentifiers(ctx Ctx, f filter.IdentifierFilter) ([]*dao.Identifier, error) DeleteIdentifier(ctx Ctx, id int64) error UpdateIdentifier( ctx Ctx, id, categoryID, parentID int64, name, description, textSingular, textPlural, platforms string) error UpdateStatusTranslation(ctx Ctx, id, status int64) error CreateCategory(ctx Ctx, name string) error GetCategories(ctx Ctx) ([]*dao.Category, error) DeleteCategory(ctx Ctx, id int64) error UpdateCategory(ctx Ctx, id int64, name string) error CreateTranslation(ctx Ctx, creatorID, localizationID, identifierID int64, singular, plural string) error GetTranslations(ctx Ctx, f filter.TranslationFilter) ([]*dao.Translation, error) DeleteTranslation(ctx Ctx, id int64) error UpdateTranslation(ctx Ctx, id int64, singular, plural string) error UpdateTranslationWithMeta(ctx Ctx, localizationID, identifierID int64, singular, plural string) error GetTranslation(ctx Ctx, locale, identifierName string) (*dao.Translation, error) GetGroupedTranslations(ctx Ctx, f filter.GroupedTranslationFilter) (map[string][]*dao.Translation, error) GetTranslationByID(ctx Ctx, id int64) (*dao.Translation, error) CreateTranslationFile(ctx Ctx, name, path, s3fileID, s3bucket string, platform, storageType, creatorID, localizationID int64) error GetTranslationFile(ctx Ctx, id int64) (*dao.TranslationFile, error) GetTranslationFiles(ctx Ctx, f filter.TranslationFileFilter) ([]*dao.TranslationFile, error) DeleteTranslationFile(ctx Ctx, id int64) error GetStatistic(ctx Ctx) (*dao.Statistic, error) GetVersionFromTranslationFiles(ctx Ctx, f filter.VersionTranslationFilesFilter) ([]*dao.Version, error) GetVersionFromTranslations(ctx Ctx, f filter.VersionTranslationsFilter) ([]*dao.Version, error) GetLanguages(ctx Ctx) ([]*dao.Language, error) }
type SettingRepo ¶
type SettingRepo interface { GetCurrentSettingState() domain.SettingConfiguration SetTranslationConfiguration(ctx Ctx, data domain.TranslationConfiguration) error SetStorageConfiguration(ctx Ctx, data domain.StorageConfiguration) error DisableSettingFirstLaunch(ctx Ctx) error }