Documentation ¶
Index ¶
- type AuthRepo
- func (_m *AuthRepo) CreateAccessToken(ctx context.Context, userID uint32, name string, expiration time.Duration) (string, error)
- func (_m *AuthRepo) DeleteAccessToken(ctx context.Context, tokenID uint32) (bool, error)
- func (_m *AuthRepo) EXPECT() *AuthRepo_Expecter
- func (_m *AuthRepo) GetByEmail(ctx context.Context, email string) (auth.UserInfo, []byte, error)
- func (_m *AuthRepo) GetByToken(ctx context.Context, token string) (auth.UserInfo, error)
- func (_m *AuthRepo) GetPermission(ctx context.Context, groupID uint8) (auth.Permission, error)
- func (_m *AuthRepo) GetTokenByID(ctx context.Context, id uint32) (auth.AccessToken, error)
- func (_m *AuthRepo) ListAccessToken(ctx context.Context, userID uint32) ([]auth.AccessToken, error)
- type AuthRepo_CreateAccessToken_Call
- func (_c *AuthRepo_CreateAccessToken_Call) Return(token string, err error) *AuthRepo_CreateAccessToken_Call
- func (_c *AuthRepo_CreateAccessToken_Call) Run(...) *AuthRepo_CreateAccessToken_Call
- func (_c *AuthRepo_CreateAccessToken_Call) RunAndReturn(run func(context.Context, uint32, string, time.Duration) (string, error)) *AuthRepo_CreateAccessToken_Call
- type AuthRepo_DeleteAccessToken_Call
- func (_c *AuthRepo_DeleteAccessToken_Call) Return(_a0 bool, _a1 error) *AuthRepo_DeleteAccessToken_Call
- func (_c *AuthRepo_DeleteAccessToken_Call) Run(run func(ctx context.Context, tokenID uint32)) *AuthRepo_DeleteAccessToken_Call
- func (_c *AuthRepo_DeleteAccessToken_Call) RunAndReturn(run func(context.Context, uint32) (bool, error)) *AuthRepo_DeleteAccessToken_Call
- type AuthRepo_Expecter
- func (_e *AuthRepo_Expecter) CreateAccessToken(ctx interface{}, userID interface{}, name interface{}, expiration interface{}) *AuthRepo_CreateAccessToken_Call
- func (_e *AuthRepo_Expecter) DeleteAccessToken(ctx interface{}, tokenID interface{}) *AuthRepo_DeleteAccessToken_Call
- func (_e *AuthRepo_Expecter) GetByEmail(ctx interface{}, email interface{}) *AuthRepo_GetByEmail_Call
- func (_e *AuthRepo_Expecter) GetByToken(ctx interface{}, token interface{}) *AuthRepo_GetByToken_Call
- func (_e *AuthRepo_Expecter) GetPermission(ctx interface{}, groupID interface{}) *AuthRepo_GetPermission_Call
- func (_e *AuthRepo_Expecter) GetTokenByID(ctx interface{}, id interface{}) *AuthRepo_GetTokenByID_Call
- func (_e *AuthRepo_Expecter) ListAccessToken(ctx interface{}, userID interface{}) *AuthRepo_ListAccessToken_Call
- type AuthRepo_GetByEmail_Call
- func (_c *AuthRepo_GetByEmail_Call) Return(_a0 auth.UserInfo, _a1 []byte, _a2 error) *AuthRepo_GetByEmail_Call
- func (_c *AuthRepo_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *AuthRepo_GetByEmail_Call
- func (_c *AuthRepo_GetByEmail_Call) RunAndReturn(run func(context.Context, string) (auth.UserInfo, []byte, error)) *AuthRepo_GetByEmail_Call
- type AuthRepo_GetByToken_Call
- func (_c *AuthRepo_GetByToken_Call) Return(_a0 auth.UserInfo, _a1 error) *AuthRepo_GetByToken_Call
- func (_c *AuthRepo_GetByToken_Call) Run(run func(ctx context.Context, token string)) *AuthRepo_GetByToken_Call
- func (_c *AuthRepo_GetByToken_Call) RunAndReturn(run func(context.Context, string) (auth.UserInfo, error)) *AuthRepo_GetByToken_Call
- type AuthRepo_GetPermission_Call
- func (_c *AuthRepo_GetPermission_Call) Return(_a0 auth.Permission, _a1 error) *AuthRepo_GetPermission_Call
- func (_c *AuthRepo_GetPermission_Call) Run(run func(ctx context.Context, groupID uint8)) *AuthRepo_GetPermission_Call
- func (_c *AuthRepo_GetPermission_Call) RunAndReturn(run func(context.Context, uint8) (auth.Permission, error)) *AuthRepo_GetPermission_Call
- type AuthRepo_GetTokenByID_Call
- func (_c *AuthRepo_GetTokenByID_Call) Return(_a0 auth.AccessToken, _a1 error) *AuthRepo_GetTokenByID_Call
- func (_c *AuthRepo_GetTokenByID_Call) Run(run func(ctx context.Context, id uint32)) *AuthRepo_GetTokenByID_Call
- func (_c *AuthRepo_GetTokenByID_Call) RunAndReturn(run func(context.Context, uint32) (auth.AccessToken, error)) *AuthRepo_GetTokenByID_Call
- type AuthRepo_ListAccessToken_Call
- func (_c *AuthRepo_ListAccessToken_Call) Return(_a0 []auth.AccessToken, _a1 error) *AuthRepo_ListAccessToken_Call
- func (_c *AuthRepo_ListAccessToken_Call) Run(run func(ctx context.Context, userID uint32)) *AuthRepo_ListAccessToken_Call
- func (_c *AuthRepo_ListAccessToken_Call) RunAndReturn(run func(context.Context, uint32) ([]auth.AccessToken, error)) *AuthRepo_ListAccessToken_Call
- type AuthService
- func (_m *AuthService) ComparePassword(hashed []byte, password string) (bool, error)
- func (_m *AuthService) CreateAccessToken(ctx context.Context, userID uint32, name string, expiration time.Duration) (string, error)
- func (_m *AuthService) DeleteAccessToken(ctx context.Context, tokenID uint32) (bool, error)
- func (_m *AuthService) EXPECT() *AuthService_Expecter
- func (_m *AuthService) GetByID(ctx context.Context, userID uint32) (auth.Auth, error)
- func (_m *AuthService) GetByToken(ctx context.Context, token string) (auth.Auth, error)
- func (_m *AuthService) GetTokenByID(ctx context.Context, tokenID uint32) (auth.AccessToken, error)
- func (_m *AuthService) ListAccessToken(ctx context.Context, userID uint32) ([]auth.AccessToken, error)
- func (_m *AuthService) Login(ctx context.Context, email string, password string) (auth.Auth, bool, error)
- type AuthService_ComparePassword_Call
- func (_c *AuthService_ComparePassword_Call) Return(_a0 bool, _a1 error) *AuthService_ComparePassword_Call
- func (_c *AuthService_ComparePassword_Call) Run(run func(hashed []byte, password string)) *AuthService_ComparePassword_Call
- func (_c *AuthService_ComparePassword_Call) RunAndReturn(run func([]byte, string) (bool, error)) *AuthService_ComparePassword_Call
- type AuthService_CreateAccessToken_Call
- func (_c *AuthService_CreateAccessToken_Call) Return(token string, err error) *AuthService_CreateAccessToken_Call
- func (_c *AuthService_CreateAccessToken_Call) Run(...) *AuthService_CreateAccessToken_Call
- func (_c *AuthService_CreateAccessToken_Call) RunAndReturn(run func(context.Context, uint32, string, time.Duration) (string, error)) *AuthService_CreateAccessToken_Call
- type AuthService_DeleteAccessToken_Call
- func (_c *AuthService_DeleteAccessToken_Call) Return(_a0 bool, _a1 error) *AuthService_DeleteAccessToken_Call
- func (_c *AuthService_DeleteAccessToken_Call) Run(run func(ctx context.Context, tokenID uint32)) *AuthService_DeleteAccessToken_Call
- func (_c *AuthService_DeleteAccessToken_Call) RunAndReturn(run func(context.Context, uint32) (bool, error)) *AuthService_DeleteAccessToken_Call
- type AuthService_Expecter
- func (_e *AuthService_Expecter) ComparePassword(hashed interface{}, password interface{}) *AuthService_ComparePassword_Call
- func (_e *AuthService_Expecter) CreateAccessToken(ctx interface{}, userID interface{}, name interface{}, expiration interface{}) *AuthService_CreateAccessToken_Call
- func (_e *AuthService_Expecter) DeleteAccessToken(ctx interface{}, tokenID interface{}) *AuthService_DeleteAccessToken_Call
- func (_e *AuthService_Expecter) GetByID(ctx interface{}, userID interface{}) *AuthService_GetByID_Call
- func (_e *AuthService_Expecter) GetByToken(ctx interface{}, token interface{}) *AuthService_GetByToken_Call
- func (_e *AuthService_Expecter) GetTokenByID(ctx interface{}, tokenID interface{}) *AuthService_GetTokenByID_Call
- func (_e *AuthService_Expecter) ListAccessToken(ctx interface{}, userID interface{}) *AuthService_ListAccessToken_Call
- func (_e *AuthService_Expecter) Login(ctx interface{}, email interface{}, password interface{}) *AuthService_Login_Call
- type AuthService_GetByID_Call
- func (_c *AuthService_GetByID_Call) Return(_a0 auth.Auth, _a1 error) *AuthService_GetByID_Call
- func (_c *AuthService_GetByID_Call) Run(run func(ctx context.Context, userID uint32)) *AuthService_GetByID_Call
- func (_c *AuthService_GetByID_Call) RunAndReturn(run func(context.Context, uint32) (auth.Auth, error)) *AuthService_GetByID_Call
- type AuthService_GetByToken_Call
- func (_c *AuthService_GetByToken_Call) Return(_a0 auth.Auth, _a1 error) *AuthService_GetByToken_Call
- func (_c *AuthService_GetByToken_Call) Run(run func(ctx context.Context, token string)) *AuthService_GetByToken_Call
- func (_c *AuthService_GetByToken_Call) RunAndReturn(run func(context.Context, string) (auth.Auth, error)) *AuthService_GetByToken_Call
- type AuthService_GetTokenByID_Call
- func (_c *AuthService_GetTokenByID_Call) Return(_a0 auth.AccessToken, _a1 error) *AuthService_GetTokenByID_Call
- func (_c *AuthService_GetTokenByID_Call) Run(run func(ctx context.Context, tokenID uint32)) *AuthService_GetTokenByID_Call
- func (_c *AuthService_GetTokenByID_Call) RunAndReturn(run func(context.Context, uint32) (auth.AccessToken, error)) *AuthService_GetTokenByID_Call
- type AuthService_ListAccessToken_Call
- func (_c *AuthService_ListAccessToken_Call) Return(_a0 []auth.AccessToken, _a1 error) *AuthService_ListAccessToken_Call
- func (_c *AuthService_ListAccessToken_Call) Run(run func(ctx context.Context, userID uint32)) *AuthService_ListAccessToken_Call
- func (_c *AuthService_ListAccessToken_Call) RunAndReturn(run func(context.Context, uint32) ([]auth.AccessToken, error)) *AuthService_ListAccessToken_Call
- type AuthService_Login_Call
- func (_c *AuthService_Login_Call) Return(_a0 auth.Auth, _a1 bool, _a2 error) *AuthService_Login_Call
- func (_c *AuthService_Login_Call) Run(run func(ctx context.Context, email string, password string)) *AuthService_Login_Call
- func (_c *AuthService_Login_Call) RunAndReturn(run func(context.Context, string, string) (auth.Auth, bool, error)) *AuthService_Login_Call
- type CharacterRepo
- func (_m *CharacterRepo) EXPECT() *CharacterRepo_Expecter
- func (_m *CharacterRepo) Get(ctx context.Context, id uint32) (model.Character, error)
- func (_m *CharacterRepo) GetByIDs(ctx context.Context, ids []uint32) (map[uint32]model.Character, error)
- func (_m *CharacterRepo) GetPersonRelated(ctx context.Context, personID uint32) ([]domain.PersonCharacterRelation, error)
- func (_m *CharacterRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectCharacterRelation, error)
- func (_m *CharacterRepo) GetSubjectRelationByIDs(ctx context.Context, ids []character.SubjectCompositeID) ([]domain.SubjectCharacterRelation, error)
- type CharacterRepo_Expecter
- func (_e *CharacterRepo_Expecter) Get(ctx interface{}, id interface{}) *CharacterRepo_Get_Call
- func (_e *CharacterRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}) *CharacterRepo_GetByIDs_Call
- func (_e *CharacterRepo_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *CharacterRepo_GetPersonRelated_Call
- func (_e *CharacterRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *CharacterRepo_GetSubjectRelated_Call
- func (_e *CharacterRepo_Expecter) GetSubjectRelationByIDs(ctx interface{}, ids interface{}) *CharacterRepo_GetSubjectRelationByIDs_Call
- type CharacterRepo_GetByIDs_Call
- func (_c *CharacterRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Character, _a1 error) *CharacterRepo_GetByIDs_Call
- func (_c *CharacterRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *CharacterRepo_GetByIDs_Call
- func (_c *CharacterRepo_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]model.Character, error)) *CharacterRepo_GetByIDs_Call
- type CharacterRepo_GetPersonRelated_Call
- func (_c *CharacterRepo_GetPersonRelated_Call) Return(_a0 []domain.PersonCharacterRelation, _a1 error) *CharacterRepo_GetPersonRelated_Call
- func (_c *CharacterRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *CharacterRepo_GetPersonRelated_Call
- func (_c *CharacterRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.PersonCharacterRelation, error)) *CharacterRepo_GetPersonRelated_Call
- type CharacterRepo_GetSubjectRelated_Call
- func (_c *CharacterRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *CharacterRepo_GetSubjectRelated_Call
- func (_c *CharacterRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *CharacterRepo_GetSubjectRelated_Call
- func (_c *CharacterRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectCharacterRelation, error)) *CharacterRepo_GetSubjectRelated_Call
- type CharacterRepo_GetSubjectRelationByIDs_Call
- func (_c *CharacterRepo_GetSubjectRelationByIDs_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *CharacterRepo_GetSubjectRelationByIDs_Call
- func (_c *CharacterRepo_GetSubjectRelationByIDs_Call) Run(run func(ctx context.Context, ids []character.SubjectCompositeID)) *CharacterRepo_GetSubjectRelationByIDs_Call
- func (_c *CharacterRepo_GetSubjectRelationByIDs_Call) RunAndReturn(...) *CharacterRepo_GetSubjectRelationByIDs_Call
- type CharacterRepo_Get_Call
- func (_c *CharacterRepo_Get_Call) Return(_a0 model.Character, _a1 error) *CharacterRepo_Get_Call
- func (_c *CharacterRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *CharacterRepo_Get_Call
- func (_c *CharacterRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Character, error)) *CharacterRepo_Get_Call
- type CollectionRepo
- func (_m *CollectionRepo) CountSubjectCollections(ctx context.Context, userID uint32, subjectType uint8, ...) (int64, error)
- func (_m *CollectionRepo) EXPECT() *CollectionRepo_Expecter
- func (_m *CollectionRepo) GetSubjectCollection(ctx context.Context, userID uint32, subjectID uint32) (collection.UserSubjectCollection, error)
- func (_m *CollectionRepo) GetSubjectEpisodesCollection(ctx context.Context, userID uint32, subjectID uint32) (collection.UserSubjectEpisodesCollection, error)
- func (_m *CollectionRepo) ListSubjectCollection(ctx context.Context, userID uint32, subjectType uint8, ...) ([]collection.UserSubjectCollection, error)
- func (_m *CollectionRepo) UpdateEpisodeCollection(ctx context.Context, userID uint32, subjectID uint32, episodeIDs []uint32, ...) (collection.UserSubjectEpisodesCollection, error)
- func (_m *CollectionRepo) UpdateOrCreateSubjectCollection(ctx context.Context, userID uint32, subject model.Subject, at time.Time, ...) error
- func (_m *CollectionRepo) UpdateSubjectCollection(ctx context.Context, userID uint32, subject model.Subject, at time.Time, ...) error
- func (_m *CollectionRepo) WithQuery(_a0 *query.Query) collections.Repo
- type CollectionRepo_CountSubjectCollections_Call
- func (_c *CollectionRepo_CountSubjectCollections_Call) Return(_a0 int64, _a1 error) *CollectionRepo_CountSubjectCollections_Call
- func (_c *CollectionRepo_CountSubjectCollections_Call) Run(run func(ctx context.Context, userID uint32, subjectType uint8, ...)) *CollectionRepo_CountSubjectCollections_Call
- func (_c *CollectionRepo_CountSubjectCollections_Call) RunAndReturn(...) *CollectionRepo_CountSubjectCollections_Call
- type CollectionRepo_Expecter
- func (_e *CollectionRepo_Expecter) CountSubjectCollections(ctx interface{}, userID interface{}, subjectType interface{}, ...) *CollectionRepo_CountSubjectCollections_Call
- func (_e *CollectionRepo_Expecter) GetSubjectCollection(ctx interface{}, userID interface{}, subjectID interface{}) *CollectionRepo_GetSubjectCollection_Call
- func (_e *CollectionRepo_Expecter) GetSubjectEpisodesCollection(ctx interface{}, userID interface{}, subjectID interface{}) *CollectionRepo_GetSubjectEpisodesCollection_Call
- func (_e *CollectionRepo_Expecter) ListSubjectCollection(ctx interface{}, userID interface{}, subjectType interface{}, ...) *CollectionRepo_ListSubjectCollection_Call
- func (_e *CollectionRepo_Expecter) UpdateEpisodeCollection(ctx interface{}, userID interface{}, subjectID interface{}, ...) *CollectionRepo_UpdateEpisodeCollection_Call
- func (_e *CollectionRepo_Expecter) UpdateOrCreateSubjectCollection(ctx interface{}, userID interface{}, subject interface{}, at interface{}, ...) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
- func (_e *CollectionRepo_Expecter) UpdateSubjectCollection(ctx interface{}, userID interface{}, subject interface{}, at interface{}, ...) *CollectionRepo_UpdateSubjectCollection_Call
- func (_e *CollectionRepo_Expecter) WithQuery(_a0 interface{}) *CollectionRepo_WithQuery_Call
- type CollectionRepo_GetSubjectCollection_Call
- func (_c *CollectionRepo_GetSubjectCollection_Call) Return(_a0 collection.UserSubjectCollection, _a1 error) *CollectionRepo_GetSubjectCollection_Call
- func (_c *CollectionRepo_GetSubjectCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectID uint32)) *CollectionRepo_GetSubjectCollection_Call
- func (_c *CollectionRepo_GetSubjectCollection_Call) RunAndReturn(...) *CollectionRepo_GetSubjectCollection_Call
- type CollectionRepo_GetSubjectEpisodesCollection_Call
- func (_c *CollectionRepo_GetSubjectEpisodesCollection_Call) Return(_a0 collection.UserSubjectEpisodesCollection, _a1 error) *CollectionRepo_GetSubjectEpisodesCollection_Call
- func (_c *CollectionRepo_GetSubjectEpisodesCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectID uint32)) *CollectionRepo_GetSubjectEpisodesCollection_Call
- func (_c *CollectionRepo_GetSubjectEpisodesCollection_Call) RunAndReturn(...) *CollectionRepo_GetSubjectEpisodesCollection_Call
- type CollectionRepo_ListSubjectCollection_Call
- func (_c *CollectionRepo_ListSubjectCollection_Call) Return(_a0 []collection.UserSubjectCollection, _a1 error) *CollectionRepo_ListSubjectCollection_Call
- func (_c *CollectionRepo_ListSubjectCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectType uint8, ...)) *CollectionRepo_ListSubjectCollection_Call
- func (_c *CollectionRepo_ListSubjectCollection_Call) RunAndReturn(...) *CollectionRepo_ListSubjectCollection_Call
- type CollectionRepo_UpdateEpisodeCollection_Call
- func (_c *CollectionRepo_UpdateEpisodeCollection_Call) Return(_a0 collection.UserSubjectEpisodesCollection, _a1 error) *CollectionRepo_UpdateEpisodeCollection_Call
- func (_c *CollectionRepo_UpdateEpisodeCollection_Call) Run(...) *CollectionRepo_UpdateEpisodeCollection_Call
- func (_c *CollectionRepo_UpdateEpisodeCollection_Call) RunAndReturn(...) *CollectionRepo_UpdateEpisodeCollection_Call
- type CollectionRepo_UpdateOrCreateSubjectCollection_Call
- func (_c *CollectionRepo_UpdateOrCreateSubjectCollection_Call) Return(_a0 error) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
- func (_c *CollectionRepo_UpdateOrCreateSubjectCollection_Call) Run(...) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
- func (_c *CollectionRepo_UpdateOrCreateSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, time.Time, string, ...) error) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
- type CollectionRepo_UpdateSubjectCollection_Call
- func (_c *CollectionRepo_UpdateSubjectCollection_Call) Return(_a0 error) *CollectionRepo_UpdateSubjectCollection_Call
- func (_c *CollectionRepo_UpdateSubjectCollection_Call) Run(...) *CollectionRepo_UpdateSubjectCollection_Call
- func (_c *CollectionRepo_UpdateSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, time.Time, string, ...) error) *CollectionRepo_UpdateSubjectCollection_Call
- type CollectionRepo_WithQuery_Call
- func (_c *CollectionRepo_WithQuery_Call) Return(_a0 collections.Repo) *CollectionRepo_WithQuery_Call
- func (_c *CollectionRepo_WithQuery_Call) Run(run func(_a0 *query.Query)) *CollectionRepo_WithQuery_Call
- func (_c *CollectionRepo_WithQuery_Call) RunAndReturn(run func(*query.Query) collections.Repo) *CollectionRepo_WithQuery_Call
- type EpisodeRepo
- func (_m *EpisodeRepo) Count(ctx context.Context, subjectID uint32, filter episode.Filter) (int64, error)
- func (_m *EpisodeRepo) EXPECT() *EpisodeRepo_Expecter
- func (_m *EpisodeRepo) Get(ctx context.Context, episodeID uint32) (episode.Episode, error)
- func (_m *EpisodeRepo) List(ctx context.Context, subjectID uint32, filter episode.Filter, limit int, ...) ([]episode.Episode, error)
- func (_m *EpisodeRepo) WithQuery(_a0 *query.Query) episode.Repo
- type EpisodeRepo_Count_Call
- func (_c *EpisodeRepo_Count_Call) Return(_a0 int64, _a1 error) *EpisodeRepo_Count_Call
- func (_c *EpisodeRepo_Count_Call) Run(run func(ctx context.Context, subjectID uint32, filter episode.Filter)) *EpisodeRepo_Count_Call
- func (_c *EpisodeRepo_Count_Call) RunAndReturn(run func(context.Context, uint32, episode.Filter) (int64, error)) *EpisodeRepo_Count_Call
- type EpisodeRepo_Expecter
- func (_e *EpisodeRepo_Expecter) Count(ctx interface{}, subjectID interface{}, filter interface{}) *EpisodeRepo_Count_Call
- func (_e *EpisodeRepo_Expecter) Get(ctx interface{}, episodeID interface{}) *EpisodeRepo_Get_Call
- func (_e *EpisodeRepo_Expecter) List(ctx interface{}, subjectID interface{}, filter interface{}, limit interface{}, ...) *EpisodeRepo_List_Call
- func (_e *EpisodeRepo_Expecter) WithQuery(_a0 interface{}) *EpisodeRepo_WithQuery_Call
- type EpisodeRepo_Get_Call
- func (_c *EpisodeRepo_Get_Call) Return(_a0 episode.Episode, _a1 error) *EpisodeRepo_Get_Call
- func (_c *EpisodeRepo_Get_Call) Run(run func(ctx context.Context, episodeID uint32)) *EpisodeRepo_Get_Call
- func (_c *EpisodeRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (episode.Episode, error)) *EpisodeRepo_Get_Call
- type EpisodeRepo_List_Call
- type EpisodeRepo_WithQuery_Call
- func (_c *EpisodeRepo_WithQuery_Call) Return(_a0 episode.Repo) *EpisodeRepo_WithQuery_Call
- func (_c *EpisodeRepo_WithQuery_Call) Run(run func(_a0 *query.Query)) *EpisodeRepo_WithQuery_Call
- func (_c *EpisodeRepo_WithQuery_Call) RunAndReturn(run func(*query.Query) episode.Repo) *EpisodeRepo_WithQuery_Call
- type IndexRepo
- func (_m *IndexRepo) AddIndexCollect(ctx context.Context, id uint32, uid uint32) error
- func (_m *IndexRepo) AddOrUpdateIndexSubject(ctx context.Context, id uint32, subjectID uint32, sort uint32, comment string) (*index.Subject, error)
- func (_m *IndexRepo) CountSubjects(ctx context.Context, id uint32, subjectType uint8) (int64, error)
- func (_m *IndexRepo) Delete(ctx context.Context, id uint32) error
- func (_m *IndexRepo) DeleteIndexCollect(ctx context.Context, id uint32, uid uint32) error
- func (_m *IndexRepo) DeleteIndexSubject(ctx context.Context, id uint32, subjectID uint32) error
- func (_m *IndexRepo) EXPECT() *IndexRepo_Expecter
- func (_m *IndexRepo) Get(ctx context.Context, id uint32) (model.Index, error)
- func (_m *IndexRepo) GetIndexCollect(ctx context.Context, id uint32, uid uint32) (*index.IndexCollect, error)
- func (_m *IndexRepo) ListSubjects(ctx context.Context, id uint32, subjectType uint8, limit int, offset int) ([]index.Subject, error)
- func (_m *IndexRepo) New(ctx context.Context, i *model.Index) error
- func (_m *IndexRepo) Update(ctx context.Context, id uint32, title string, desc string) error
- type IndexRepo_AddIndexCollect_Call
- func (_c *IndexRepo_AddIndexCollect_Call) Return(_a0 error) *IndexRepo_AddIndexCollect_Call
- func (_c *IndexRepo_AddIndexCollect_Call) Run(run func(ctx context.Context, id uint32, uid uint32)) *IndexRepo_AddIndexCollect_Call
- func (_c *IndexRepo_AddIndexCollect_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *IndexRepo_AddIndexCollect_Call
- type IndexRepo_AddOrUpdateIndexSubject_Call
- func (_c *IndexRepo_AddOrUpdateIndexSubject_Call) Return(_a0 *index.Subject, _a1 error) *IndexRepo_AddOrUpdateIndexSubject_Call
- func (_c *IndexRepo_AddOrUpdateIndexSubject_Call) Run(...) *IndexRepo_AddOrUpdateIndexSubject_Call
- func (_c *IndexRepo_AddOrUpdateIndexSubject_Call) RunAndReturn(...) *IndexRepo_AddOrUpdateIndexSubject_Call
- type IndexRepo_CountSubjects_Call
- func (_c *IndexRepo_CountSubjects_Call) Return(_a0 int64, _a1 error) *IndexRepo_CountSubjects_Call
- func (_c *IndexRepo_CountSubjects_Call) Run(run func(ctx context.Context, id uint32, subjectType uint8)) *IndexRepo_CountSubjects_Call
- func (_c *IndexRepo_CountSubjects_Call) RunAndReturn(run func(context.Context, uint32, uint8) (int64, error)) *IndexRepo_CountSubjects_Call
- type IndexRepo_DeleteIndexCollect_Call
- func (_c *IndexRepo_DeleteIndexCollect_Call) Return(_a0 error) *IndexRepo_DeleteIndexCollect_Call
- func (_c *IndexRepo_DeleteIndexCollect_Call) Run(run func(ctx context.Context, id uint32, uid uint32)) *IndexRepo_DeleteIndexCollect_Call
- func (_c *IndexRepo_DeleteIndexCollect_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *IndexRepo_DeleteIndexCollect_Call
- type IndexRepo_DeleteIndexSubject_Call
- func (_c *IndexRepo_DeleteIndexSubject_Call) Return(_a0 error) *IndexRepo_DeleteIndexSubject_Call
- func (_c *IndexRepo_DeleteIndexSubject_Call) Run(run func(ctx context.Context, id uint32, subjectID uint32)) *IndexRepo_DeleteIndexSubject_Call
- func (_c *IndexRepo_DeleteIndexSubject_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *IndexRepo_DeleteIndexSubject_Call
- type IndexRepo_Delete_Call
- type IndexRepo_Expecter
- func (_e *IndexRepo_Expecter) AddIndexCollect(ctx interface{}, id interface{}, uid interface{}) *IndexRepo_AddIndexCollect_Call
- func (_e *IndexRepo_Expecter) AddOrUpdateIndexSubject(ctx interface{}, id interface{}, subjectID interface{}, sort interface{}, ...) *IndexRepo_AddOrUpdateIndexSubject_Call
- func (_e *IndexRepo_Expecter) CountSubjects(ctx interface{}, id interface{}, subjectType interface{}) *IndexRepo_CountSubjects_Call
- func (_e *IndexRepo_Expecter) Delete(ctx interface{}, id interface{}) *IndexRepo_Delete_Call
- func (_e *IndexRepo_Expecter) DeleteIndexCollect(ctx interface{}, id interface{}, uid interface{}) *IndexRepo_DeleteIndexCollect_Call
- func (_e *IndexRepo_Expecter) DeleteIndexSubject(ctx interface{}, id interface{}, subjectID interface{}) *IndexRepo_DeleteIndexSubject_Call
- func (_e *IndexRepo_Expecter) Get(ctx interface{}, id interface{}) *IndexRepo_Get_Call
- func (_e *IndexRepo_Expecter) GetIndexCollect(ctx interface{}, id interface{}, uid interface{}) *IndexRepo_GetIndexCollect_Call
- func (_e *IndexRepo_Expecter) ListSubjects(ctx interface{}, id interface{}, subjectType interface{}, limit interface{}, ...) *IndexRepo_ListSubjects_Call
- func (_e *IndexRepo_Expecter) New(ctx interface{}, i interface{}) *IndexRepo_New_Call
- func (_e *IndexRepo_Expecter) Update(ctx interface{}, id interface{}, title interface{}, desc interface{}) *IndexRepo_Update_Call
- type IndexRepo_GetIndexCollect_Call
- func (_c *IndexRepo_GetIndexCollect_Call) Return(_a0 *index.IndexCollect, _a1 error) *IndexRepo_GetIndexCollect_Call
- func (_c *IndexRepo_GetIndexCollect_Call) Run(run func(ctx context.Context, id uint32, uid uint32)) *IndexRepo_GetIndexCollect_Call
- func (_c *IndexRepo_GetIndexCollect_Call) RunAndReturn(run func(context.Context, uint32, uint32) (*index.IndexCollect, error)) *IndexRepo_GetIndexCollect_Call
- type IndexRepo_Get_Call
- type IndexRepo_ListSubjects_Call
- func (_c *IndexRepo_ListSubjects_Call) Return(_a0 []index.Subject, _a1 error) *IndexRepo_ListSubjects_Call
- func (_c *IndexRepo_ListSubjects_Call) Run(...) *IndexRepo_ListSubjects_Call
- func (_c *IndexRepo_ListSubjects_Call) RunAndReturn(run func(context.Context, uint32, uint8, int, int) ([]index.Subject, error)) *IndexRepo_ListSubjects_Call
- type IndexRepo_New_Call
- type IndexRepo_Update_Call
- func (_c *IndexRepo_Update_Call) Return(_a0 error) *IndexRepo_Update_Call
- func (_c *IndexRepo_Update_Call) Run(run func(ctx context.Context, id uint32, title string, desc string)) *IndexRepo_Update_Call
- func (_c *IndexRepo_Update_Call) RunAndReturn(run func(context.Context, uint32, string, string) error) *IndexRepo_Update_Call
- type NotificationRepo
- type NotificationRepo_Count_Call
- func (_c *NotificationRepo_Count_Call) Return(_a0 int64, _a1 error) *NotificationRepo_Count_Call
- func (_c *NotificationRepo_Count_Call) Run(run func(ctx context.Context, userID uint32)) *NotificationRepo_Count_Call
- func (_c *NotificationRepo_Count_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *NotificationRepo_Count_Call
- type NotificationRepo_Expecter
- type PersonRepo
- func (_m *PersonRepo) EXPECT() *PersonRepo_Expecter
- func (_m *PersonRepo) Get(ctx context.Context, id uint32) (model.Person, error)
- func (_m *PersonRepo) GetByIDs(ctx context.Context, ids []uint32) (map[uint32]model.Person, error)
- func (_m *PersonRepo) GetCharacterRelated(ctx context.Context, subjectID uint32) ([]domain.PersonCharacterRelation, error)
- func (_m *PersonRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectPersonRelation, error)
- type PersonRepo_Expecter
- func (_e *PersonRepo_Expecter) Get(ctx interface{}, id interface{}) *PersonRepo_Get_Call
- func (_e *PersonRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}) *PersonRepo_GetByIDs_Call
- func (_e *PersonRepo_Expecter) GetCharacterRelated(ctx interface{}, subjectID interface{}) *PersonRepo_GetCharacterRelated_Call
- func (_e *PersonRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *PersonRepo_GetSubjectRelated_Call
- type PersonRepo_GetByIDs_Call
- func (_c *PersonRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Person, _a1 error) *PersonRepo_GetByIDs_Call
- func (_c *PersonRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *PersonRepo_GetByIDs_Call
- func (_c *PersonRepo_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]model.Person, error)) *PersonRepo_GetByIDs_Call
- type PersonRepo_GetCharacterRelated_Call
- func (_c *PersonRepo_GetCharacterRelated_Call) Return(_a0 []domain.PersonCharacterRelation, _a1 error) *PersonRepo_GetCharacterRelated_Call
- func (_c *PersonRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonRepo_GetCharacterRelated_Call
- func (_c *PersonRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.PersonCharacterRelation, error)) *PersonRepo_GetCharacterRelated_Call
- type PersonRepo_GetSubjectRelated_Call
- func (_c *PersonRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *PersonRepo_GetSubjectRelated_Call
- func (_c *PersonRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonRepo_GetSubjectRelated_Call
- func (_c *PersonRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *PersonRepo_GetSubjectRelated_Call
- type PersonRepo_Get_Call
- func (_c *PersonRepo_Get_Call) Return(_a0 model.Person, _a1 error) *PersonRepo_Get_Call
- func (_c *PersonRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *PersonRepo_Get_Call
- func (_c *PersonRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Person, error)) *PersonRepo_Get_Call
- type PersonService
- func (_m *PersonService) EXPECT() *PersonService_Expecter
- func (_m *PersonService) Get(ctx context.Context, id uint32) (model.Person, error)
- func (_m *PersonService) GetByIDs(ctx context.Context, ids []uint32) (map[uint32]model.Person, error)
- func (_m *PersonService) GetCharacterRelated(ctx context.Context, subjectID uint32) ([]domain.PersonCharacterRelation, error)
- func (_m *PersonService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectPersonRelation, error)
- type PersonService_Expecter
- func (_e *PersonService_Expecter) Get(ctx interface{}, id interface{}) *PersonService_Get_Call
- func (_e *PersonService_Expecter) GetByIDs(ctx interface{}, ids interface{}) *PersonService_GetByIDs_Call
- func (_e *PersonService_Expecter) GetCharacterRelated(ctx interface{}, subjectID interface{}) *PersonService_GetCharacterRelated_Call
- func (_e *PersonService_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *PersonService_GetSubjectRelated_Call
- type PersonService_GetByIDs_Call
- func (_c *PersonService_GetByIDs_Call) Return(_a0 map[uint32]model.Person, _a1 error) *PersonService_GetByIDs_Call
- func (_c *PersonService_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *PersonService_GetByIDs_Call
- func (_c *PersonService_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]model.Person, error)) *PersonService_GetByIDs_Call
- type PersonService_GetCharacterRelated_Call
- func (_c *PersonService_GetCharacterRelated_Call) Return(_a0 []domain.PersonCharacterRelation, _a1 error) *PersonService_GetCharacterRelated_Call
- func (_c *PersonService_GetCharacterRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonService_GetCharacterRelated_Call
- func (_c *PersonService_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.PersonCharacterRelation, error)) *PersonService_GetCharacterRelated_Call
- type PersonService_GetSubjectRelated_Call
- func (_c *PersonService_GetSubjectRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *PersonService_GetSubjectRelated_Call
- func (_c *PersonService_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonService_GetSubjectRelated_Call
- func (_c *PersonService_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *PersonService_GetSubjectRelated_Call
- type PersonService_Get_Call
- func (_c *PersonService_Get_Call) Return(_a0 model.Person, _a1 error) *PersonService_Get_Call
- func (_c *PersonService_Get_Call) Run(run func(ctx context.Context, id uint32)) *PersonService_Get_Call
- func (_c *PersonService_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Person, error)) *PersonService_Get_Call
- type PrivateMessageRepo
- func (_m *PrivateMessageRepo) CountByFolder(ctx context.Context, userID uint32, folder pm.FolderType) (int64, error)
- func (_m *PrivateMessageRepo) CountTypes(ctx context.Context, userID uint32) (pm.PrivateMessageTypeCounts, error)
- func (_m *PrivateMessageRepo) Create(ctx context.Context, senderID uint32, receiverIDs []uint32, ...) ([]pm.PrivateMessage, error)
- func (_m *PrivateMessageRepo) Delete(ctx context.Context, userID uint32, ids []uint32) error
- func (_m *PrivateMessageRepo) EXPECT() *PrivateMessageRepo_Expecter
- func (_m *PrivateMessageRepo) List(ctx context.Context, userID uint32, folder pm.FolderType, offset int, ...) ([]pm.PrivateMessageListItem, error)
- func (_m *PrivateMessageRepo) ListRecentContact(ctx context.Context, userID uint32) ([]uint32, error)
- func (_m *PrivateMessageRepo) ListRelated(ctx context.Context, userID uint32, id uint32) ([]pm.PrivateMessage, error)
- func (_m *PrivateMessageRepo) MarkRead(ctx context.Context, userID uint32, relatedID uint32) error
- type PrivateMessageRepo_CountByFolder_Call
- func (_c *PrivateMessageRepo_CountByFolder_Call) Return(_a0 int64, _a1 error) *PrivateMessageRepo_CountByFolder_Call
- func (_c *PrivateMessageRepo_CountByFolder_Call) Run(run func(ctx context.Context, userID uint32, folder pm.FolderType)) *PrivateMessageRepo_CountByFolder_Call
- func (_c *PrivateMessageRepo_CountByFolder_Call) RunAndReturn(run func(context.Context, uint32, pm.FolderType) (int64, error)) *PrivateMessageRepo_CountByFolder_Call
- type PrivateMessageRepo_CountTypes_Call
- func (_c *PrivateMessageRepo_CountTypes_Call) Return(_a0 pm.PrivateMessageTypeCounts, _a1 error) *PrivateMessageRepo_CountTypes_Call
- func (_c *PrivateMessageRepo_CountTypes_Call) Run(run func(ctx context.Context, userID uint32)) *PrivateMessageRepo_CountTypes_Call
- func (_c *PrivateMessageRepo_CountTypes_Call) RunAndReturn(run func(context.Context, uint32) (pm.PrivateMessageTypeCounts, error)) *PrivateMessageRepo_CountTypes_Call
- type PrivateMessageRepo_Create_Call
- func (_c *PrivateMessageRepo_Create_Call) Return(_a0 []pm.PrivateMessage, _a1 error) *PrivateMessageRepo_Create_Call
- func (_c *PrivateMessageRepo_Create_Call) Run(run func(ctx context.Context, senderID uint32, receiverIDs []uint32, ...)) *PrivateMessageRepo_Create_Call
- func (_c *PrivateMessageRepo_Create_Call) RunAndReturn(...) *PrivateMessageRepo_Create_Call
- type PrivateMessageRepo_Delete_Call
- func (_c *PrivateMessageRepo_Delete_Call) Return(_a0 error) *PrivateMessageRepo_Delete_Call
- func (_c *PrivateMessageRepo_Delete_Call) Run(run func(ctx context.Context, userID uint32, ids []uint32)) *PrivateMessageRepo_Delete_Call
- func (_c *PrivateMessageRepo_Delete_Call) RunAndReturn(run func(context.Context, uint32, []uint32) error) *PrivateMessageRepo_Delete_Call
- type PrivateMessageRepo_Expecter
- func (_e *PrivateMessageRepo_Expecter) CountByFolder(ctx interface{}, userID interface{}, folder interface{}) *PrivateMessageRepo_CountByFolder_Call
- func (_e *PrivateMessageRepo_Expecter) CountTypes(ctx interface{}, userID interface{}) *PrivateMessageRepo_CountTypes_Call
- func (_e *PrivateMessageRepo_Expecter) Create(ctx interface{}, senderID interface{}, receiverIDs interface{}, ...) *PrivateMessageRepo_Create_Call
- func (_e *PrivateMessageRepo_Expecter) Delete(ctx interface{}, userID interface{}, ids interface{}) *PrivateMessageRepo_Delete_Call
- func (_e *PrivateMessageRepo_Expecter) List(ctx interface{}, userID interface{}, folder interface{}, offset interface{}, ...) *PrivateMessageRepo_List_Call
- func (_e *PrivateMessageRepo_Expecter) ListRecentContact(ctx interface{}, userID interface{}) *PrivateMessageRepo_ListRecentContact_Call
- func (_e *PrivateMessageRepo_Expecter) ListRelated(ctx interface{}, userID interface{}, id interface{}) *PrivateMessageRepo_ListRelated_Call
- func (_e *PrivateMessageRepo_Expecter) MarkRead(ctx interface{}, userID interface{}, relatedID interface{}) *PrivateMessageRepo_MarkRead_Call
- type PrivateMessageRepo_ListRecentContact_Call
- func (_c *PrivateMessageRepo_ListRecentContact_Call) Return(_a0 []uint32, _a1 error) *PrivateMessageRepo_ListRecentContact_Call
- func (_c *PrivateMessageRepo_ListRecentContact_Call) Run(run func(ctx context.Context, userID uint32)) *PrivateMessageRepo_ListRecentContact_Call
- func (_c *PrivateMessageRepo_ListRecentContact_Call) RunAndReturn(run func(context.Context, uint32) ([]uint32, error)) *PrivateMessageRepo_ListRecentContact_Call
- type PrivateMessageRepo_ListRelated_Call
- func (_c *PrivateMessageRepo_ListRelated_Call) Return(_a0 []pm.PrivateMessage, _a1 error) *PrivateMessageRepo_ListRelated_Call
- func (_c *PrivateMessageRepo_ListRelated_Call) Run(run func(ctx context.Context, userID uint32, id uint32)) *PrivateMessageRepo_ListRelated_Call
- func (_c *PrivateMessageRepo_ListRelated_Call) RunAndReturn(run func(context.Context, uint32, uint32) ([]pm.PrivateMessage, error)) *PrivateMessageRepo_ListRelated_Call
- type PrivateMessageRepo_List_Call
- type PrivateMessageRepo_MarkRead_Call
- func (_c *PrivateMessageRepo_MarkRead_Call) Return(_a0 error) *PrivateMessageRepo_MarkRead_Call
- func (_c *PrivateMessageRepo_MarkRead_Call) Run(run func(ctx context.Context, userID uint32, relatedID uint32)) *PrivateMessageRepo_MarkRead_Call
- func (_c *PrivateMessageRepo_MarkRead_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *PrivateMessageRepo_MarkRead_Call
- type RedisCache
- func (_m *RedisCache) Del(ctx context.Context, keys ...string) error
- func (_m *RedisCache) EXPECT() *RedisCache_Expecter
- func (_m *RedisCache) Get(ctx context.Context, key string, value interface{}) (bool, error)
- func (_m *RedisCache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- type RedisCache_Del_Call
- type RedisCache_Expecter
- func (_e *RedisCache_Expecter) Del(ctx interface{}, keys ...interface{}) *RedisCache_Del_Call
- func (_e *RedisCache_Expecter) Get(ctx interface{}, key interface{}, value interface{}) *RedisCache_Get_Call
- func (_e *RedisCache_Expecter) Set(ctx interface{}, key interface{}, value interface{}, ttl interface{}) *RedisCache_Set_Call
- type RedisCache_Get_Call
- func (_c *RedisCache_Get_Call) Return(_a0 bool, _a1 error) *RedisCache_Get_Call
- func (_c *RedisCache_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *RedisCache_Get_Call
- func (_c *RedisCache_Get_Call) RunAndReturn(run func(context.Context, string, interface{}) (bool, error)) *RedisCache_Get_Call
- type RedisCache_Set_Call
- type RevisionRepo
- func (_m *RevisionRepo) CountCharacterRelated(ctx context.Context, characterID uint32) (int64, error)
- func (_m *RevisionRepo) CountEpisodeRelated(ctx context.Context, episodeID uint32) (int64, error)
- func (_m *RevisionRepo) CountPersonRelated(ctx context.Context, personID uint32) (int64, error)
- func (_m *RevisionRepo) CountSubjectRelated(ctx context.Context, id uint32) (int64, error)
- func (_m *RevisionRepo) EXPECT() *RevisionRepo_Expecter
- func (_m *RevisionRepo) GetCharacterRelated(ctx context.Context, id uint32) (model.CharacterRevision, error)
- func (_m *RevisionRepo) GetEpisodeRelated(ctx context.Context, id uint32) (model.EpisodeRevision, error)
- func (_m *RevisionRepo) GetPersonRelated(ctx context.Context, id uint32) (model.PersonRevision, error)
- func (_m *RevisionRepo) GetSubjectRelated(ctx context.Context, id uint32) (model.SubjectRevision, error)
- func (_m *RevisionRepo) ListCharacterRelated(ctx context.Context, characterID uint32, limit int, offset int) ([]model.CharacterRevision, error)
- func (_m *RevisionRepo) ListEpisodeRelated(ctx context.Context, episodeID uint32, limit int, offset int) ([]model.EpisodeRevision, error)
- func (_m *RevisionRepo) ListPersonRelated(ctx context.Context, personID uint32, limit int, offset int) ([]model.PersonRevision, error)
- func (_m *RevisionRepo) ListSubjectRelated(ctx context.Context, id uint32, limit int, offset int) ([]model.SubjectRevision, error)
- type RevisionRepo_CountCharacterRelated_Call
- func (_c *RevisionRepo_CountCharacterRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountCharacterRelated_Call
- func (_c *RevisionRepo_CountCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *RevisionRepo_CountCharacterRelated_Call
- func (_c *RevisionRepo_CountCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountCharacterRelated_Call
- type RevisionRepo_CountEpisodeRelated_Call
- func (_c *RevisionRepo_CountEpisodeRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountEpisodeRelated_Call
- func (_c *RevisionRepo_CountEpisodeRelated_Call) Run(run func(ctx context.Context, episodeID uint32)) *RevisionRepo_CountEpisodeRelated_Call
- func (_c *RevisionRepo_CountEpisodeRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountEpisodeRelated_Call
- type RevisionRepo_CountPersonRelated_Call
- func (_c *RevisionRepo_CountPersonRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountPersonRelated_Call
- func (_c *RevisionRepo_CountPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *RevisionRepo_CountPersonRelated_Call
- func (_c *RevisionRepo_CountPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountPersonRelated_Call
- type RevisionRepo_CountSubjectRelated_Call
- func (_c *RevisionRepo_CountSubjectRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountSubjectRelated_Call
- func (_c *RevisionRepo_CountSubjectRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_CountSubjectRelated_Call
- func (_c *RevisionRepo_CountSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountSubjectRelated_Call
- type RevisionRepo_Expecter
- func (_e *RevisionRepo_Expecter) CountCharacterRelated(ctx interface{}, characterID interface{}) *RevisionRepo_CountCharacterRelated_Call
- func (_e *RevisionRepo_Expecter) CountEpisodeRelated(ctx interface{}, episodeID interface{}) *RevisionRepo_CountEpisodeRelated_Call
- func (_e *RevisionRepo_Expecter) CountPersonRelated(ctx interface{}, personID interface{}) *RevisionRepo_CountPersonRelated_Call
- func (_e *RevisionRepo_Expecter) CountSubjectRelated(ctx interface{}, id interface{}) *RevisionRepo_CountSubjectRelated_Call
- func (_e *RevisionRepo_Expecter) GetCharacterRelated(ctx interface{}, id interface{}) *RevisionRepo_GetCharacterRelated_Call
- func (_e *RevisionRepo_Expecter) GetEpisodeRelated(ctx interface{}, id interface{}) *RevisionRepo_GetEpisodeRelated_Call
- func (_e *RevisionRepo_Expecter) GetPersonRelated(ctx interface{}, id interface{}) *RevisionRepo_GetPersonRelated_Call
- func (_e *RevisionRepo_Expecter) GetSubjectRelated(ctx interface{}, id interface{}) *RevisionRepo_GetSubjectRelated_Call
- func (_e *RevisionRepo_Expecter) ListCharacterRelated(ctx interface{}, characterID interface{}, limit interface{}, ...) *RevisionRepo_ListCharacterRelated_Call
- func (_e *RevisionRepo_Expecter) ListEpisodeRelated(ctx interface{}, episodeID interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListEpisodeRelated_Call
- func (_e *RevisionRepo_Expecter) ListPersonRelated(ctx interface{}, personID interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListPersonRelated_Call
- func (_e *RevisionRepo_Expecter) ListSubjectRelated(ctx interface{}, id interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListSubjectRelated_Call
- type RevisionRepo_GetCharacterRelated_Call
- func (_c *RevisionRepo_GetCharacterRelated_Call) Return(_a0 model.CharacterRevision, _a1 error) *RevisionRepo_GetCharacterRelated_Call
- func (_c *RevisionRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetCharacterRelated_Call
- func (_c *RevisionRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.CharacterRevision, error)) *RevisionRepo_GetCharacterRelated_Call
- type RevisionRepo_GetEpisodeRelated_Call
- func (_c *RevisionRepo_GetEpisodeRelated_Call) Return(_a0 model.EpisodeRevision, _a1 error) *RevisionRepo_GetEpisodeRelated_Call
- func (_c *RevisionRepo_GetEpisodeRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetEpisodeRelated_Call
- func (_c *RevisionRepo_GetEpisodeRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.EpisodeRevision, error)) *RevisionRepo_GetEpisodeRelated_Call
- type RevisionRepo_GetPersonRelated_Call
- func (_c *RevisionRepo_GetPersonRelated_Call) Return(_a0 model.PersonRevision, _a1 error) *RevisionRepo_GetPersonRelated_Call
- func (_c *RevisionRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetPersonRelated_Call
- func (_c *RevisionRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.PersonRevision, error)) *RevisionRepo_GetPersonRelated_Call
- type RevisionRepo_GetSubjectRelated_Call
- func (_c *RevisionRepo_GetSubjectRelated_Call) Return(_a0 model.SubjectRevision, _a1 error) *RevisionRepo_GetSubjectRelated_Call
- func (_c *RevisionRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetSubjectRelated_Call
- func (_c *RevisionRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.SubjectRevision, error)) *RevisionRepo_GetSubjectRelated_Call
- type RevisionRepo_ListCharacterRelated_Call
- func (_c *RevisionRepo_ListCharacterRelated_Call) Return(_a0 []model.CharacterRevision, _a1 error) *RevisionRepo_ListCharacterRelated_Call
- func (_c *RevisionRepo_ListCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32, limit int, offset int)) *RevisionRepo_ListCharacterRelated_Call
- func (_c *RevisionRepo_ListCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.CharacterRevision, error)) *RevisionRepo_ListCharacterRelated_Call
- type RevisionRepo_ListEpisodeRelated_Call
- func (_c *RevisionRepo_ListEpisodeRelated_Call) Return(_a0 []model.EpisodeRevision, _a1 error) *RevisionRepo_ListEpisodeRelated_Call
- func (_c *RevisionRepo_ListEpisodeRelated_Call) Run(run func(ctx context.Context, episodeID uint32, limit int, offset int)) *RevisionRepo_ListEpisodeRelated_Call
- func (_c *RevisionRepo_ListEpisodeRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.EpisodeRevision, error)) *RevisionRepo_ListEpisodeRelated_Call
- type RevisionRepo_ListPersonRelated_Call
- func (_c *RevisionRepo_ListPersonRelated_Call) Return(_a0 []model.PersonRevision, _a1 error) *RevisionRepo_ListPersonRelated_Call
- func (_c *RevisionRepo_ListPersonRelated_Call) Run(run func(ctx context.Context, personID uint32, limit int, offset int)) *RevisionRepo_ListPersonRelated_Call
- func (_c *RevisionRepo_ListPersonRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.PersonRevision, error)) *RevisionRepo_ListPersonRelated_Call
- type RevisionRepo_ListSubjectRelated_Call
- func (_c *RevisionRepo_ListSubjectRelated_Call) Return(_a0 []model.SubjectRevision, _a1 error) *RevisionRepo_ListSubjectRelated_Call
- func (_c *RevisionRepo_ListSubjectRelated_Call) Run(run func(ctx context.Context, id uint32, limit int, offset int)) *RevisionRepo_ListSubjectRelated_Call
- func (_c *RevisionRepo_ListSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.SubjectRevision, error)) *RevisionRepo_ListSubjectRelated_Call
- type SearchClient
- type SearchClient_Close_Call
- type SearchClient_Expecter
- func (_e *SearchClient_Expecter) Close() *SearchClient_Close_Call
- func (_e *SearchClient_Expecter) Handle(c interface{}) *SearchClient_Handle_Call
- func (_e *SearchClient_Expecter) OnSubjectDelete(ctx interface{}, id interface{}) *SearchClient_OnSubjectDelete_Call
- func (_e *SearchClient_Expecter) OnSubjectUpdate(ctx interface{}, id interface{}) *SearchClient_OnSubjectUpdate_Call
- type SearchClient_Handle_Call
- type SearchClient_OnSubjectDelete_Call
- func (_c *SearchClient_OnSubjectDelete_Call) Return(_a0 error) *SearchClient_OnSubjectDelete_Call
- func (_c *SearchClient_OnSubjectDelete_Call) Run(run func(ctx context.Context, id uint32)) *SearchClient_OnSubjectDelete_Call
- func (_c *SearchClient_OnSubjectDelete_Call) RunAndReturn(run func(context.Context, uint32) error) *SearchClient_OnSubjectDelete_Call
- type SearchClient_OnSubjectUpdate_Call
- func (_c *SearchClient_OnSubjectUpdate_Call) Return(_a0 error) *SearchClient_OnSubjectUpdate_Call
- func (_c *SearchClient_OnSubjectUpdate_Call) Run(run func(ctx context.Context, id uint32)) *SearchClient_OnSubjectUpdate_Call
- func (_c *SearchClient_OnSubjectUpdate_Call) RunAndReturn(run func(context.Context, uint32) error) *SearchClient_OnSubjectUpdate_Call
- type SessionManager
- func (_m *SessionManager) Create(ctx context.Context, a auth.Auth) (string, session.Session, error)
- func (_m *SessionManager) EXPECT() *SessionManager_Expecter
- func (_m *SessionManager) Get(ctx context.Context, key string) (session.Session, error)
- func (_m *SessionManager) Revoke(ctx context.Context, key string) error
- func (_m *SessionManager) RevokeUser(ctx context.Context, id uint32) error
- type SessionManager_Create_Call
- func (_c *SessionManager_Create_Call) Return(_a0 string, _a1 session.Session, _a2 error) *SessionManager_Create_Call
- func (_c *SessionManager_Create_Call) Run(run func(ctx context.Context, a auth.Auth)) *SessionManager_Create_Call
- func (_c *SessionManager_Create_Call) RunAndReturn(run func(context.Context, auth.Auth) (string, session.Session, error)) *SessionManager_Create_Call
- type SessionManager_Expecter
- func (_e *SessionManager_Expecter) Create(ctx interface{}, a interface{}) *SessionManager_Create_Call
- func (_e *SessionManager_Expecter) Get(ctx interface{}, key interface{}) *SessionManager_Get_Call
- func (_e *SessionManager_Expecter) Revoke(ctx interface{}, key interface{}) *SessionManager_Revoke_Call
- func (_e *SessionManager_Expecter) RevokeUser(ctx interface{}, id interface{}) *SessionManager_RevokeUser_Call
- type SessionManager_Get_Call
- func (_c *SessionManager_Get_Call) Return(_a0 session.Session, _a1 error) *SessionManager_Get_Call
- func (_c *SessionManager_Get_Call) Run(run func(ctx context.Context, key string)) *SessionManager_Get_Call
- func (_c *SessionManager_Get_Call) RunAndReturn(run func(context.Context, string) (session.Session, error)) *SessionManager_Get_Call
- type SessionManager_RevokeUser_Call
- func (_c *SessionManager_RevokeUser_Call) Return(_a0 error) *SessionManager_RevokeUser_Call
- func (_c *SessionManager_RevokeUser_Call) Run(run func(ctx context.Context, id uint32)) *SessionManager_RevokeUser_Call
- func (_c *SessionManager_RevokeUser_Call) RunAndReturn(run func(context.Context, uint32) error) *SessionManager_RevokeUser_Call
- type SessionManager_Revoke_Call
- func (_c *SessionManager_Revoke_Call) Return(_a0 error) *SessionManager_Revoke_Call
- func (_c *SessionManager_Revoke_Call) Run(run func(ctx context.Context, key string)) *SessionManager_Revoke_Call
- func (_c *SessionManager_Revoke_Call) RunAndReturn(run func(context.Context, string) error) *SessionManager_Revoke_Call
- type SessionRepo
- func (_m *SessionRepo) Create(ctx context.Context, userID uint32, regTime time.Time, keyGen func() string) (string, session.Session, error)
- func (_m *SessionRepo) EXPECT() *SessionRepo_Expecter
- func (_m *SessionRepo) Get(ctx context.Context, key string) (session.Session, error)
- func (_m *SessionRepo) Revoke(ctx context.Context, key string) error
- func (_m *SessionRepo) RevokeUser(ctx context.Context, userID uint32) ([]string, error)
- type SessionRepo_Create_Call
- type SessionRepo_Expecter
- func (_e *SessionRepo_Expecter) Create(ctx interface{}, userID interface{}, regTime interface{}, keyGen interface{}) *SessionRepo_Create_Call
- func (_e *SessionRepo_Expecter) Get(ctx interface{}, key interface{}) *SessionRepo_Get_Call
- func (_e *SessionRepo_Expecter) Revoke(ctx interface{}, key interface{}) *SessionRepo_Revoke_Call
- func (_e *SessionRepo_Expecter) RevokeUser(ctx interface{}, userID interface{}) *SessionRepo_RevokeUser_Call
- type SessionRepo_Get_Call
- func (_c *SessionRepo_Get_Call) Return(_a0 session.Session, _a1 error) *SessionRepo_Get_Call
- func (_c *SessionRepo_Get_Call) Run(run func(ctx context.Context, key string)) *SessionRepo_Get_Call
- func (_c *SessionRepo_Get_Call) RunAndReturn(run func(context.Context, string) (session.Session, error)) *SessionRepo_Get_Call
- type SessionRepo_RevokeUser_Call
- func (_c *SessionRepo_RevokeUser_Call) Return(keys []string, err error) *SessionRepo_RevokeUser_Call
- func (_c *SessionRepo_RevokeUser_Call) Run(run func(ctx context.Context, userID uint32)) *SessionRepo_RevokeUser_Call
- func (_c *SessionRepo_RevokeUser_Call) RunAndReturn(run func(context.Context, uint32) ([]string, error)) *SessionRepo_RevokeUser_Call
- type SessionRepo_Revoke_Call
- type SubjectCachedRepo
- func (_m *SubjectCachedRepo) EXPECT() *SubjectCachedRepo_Expecter
- func (_m *SubjectCachedRepo) Get(ctx context.Context, id uint32, filter subject.Filter) (model.Subject, error)
- func (_m *SubjectCachedRepo) GetActors(ctx context.Context, subjectID uint32, characterIDs []uint32) (map[uint32][]uint32, error)
- func (_m *SubjectCachedRepo) GetByIDs(ctx context.Context, ids []uint32, filter subject.Filter) (map[uint32]model.Subject, error)
- func (_m *SubjectCachedRepo) GetCharacterRelated(ctx context.Context, characterID uint32) ([]domain.SubjectCharacterRelation, error)
- func (_m *SubjectCachedRepo) GetPersonRelated(ctx context.Context, personID uint32) ([]domain.SubjectPersonRelation, error)
- func (_m *SubjectCachedRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectInternalRelation, error)
- type SubjectCachedRepo_Expecter
- func (_e *SubjectCachedRepo_Expecter) Get(ctx interface{}, id interface{}, filter interface{}) *SubjectCachedRepo_Get_Call
- func (_e *SubjectCachedRepo_Expecter) GetActors(ctx interface{}, subjectID interface{}, characterIDs interface{}) *SubjectCachedRepo_GetActors_Call
- func (_e *SubjectCachedRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}, filter interface{}) *SubjectCachedRepo_GetByIDs_Call
- func (_e *SubjectCachedRepo_Expecter) GetCharacterRelated(ctx interface{}, characterID interface{}) *SubjectCachedRepo_GetCharacterRelated_Call
- func (_e *SubjectCachedRepo_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *SubjectCachedRepo_GetPersonRelated_Call
- func (_e *SubjectCachedRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *SubjectCachedRepo_GetSubjectRelated_Call
- type SubjectCachedRepo_GetActors_Call
- func (_c *SubjectCachedRepo_GetActors_Call) Return(_a0 map[uint32][]uint32, _a1 error) *SubjectCachedRepo_GetActors_Call
- func (_c *SubjectCachedRepo_GetActors_Call) Run(run func(ctx context.Context, subjectID uint32, characterIDs []uint32)) *SubjectCachedRepo_GetActors_Call
- func (_c *SubjectCachedRepo_GetActors_Call) RunAndReturn(run func(context.Context, uint32, []uint32) (map[uint32][]uint32, error)) *SubjectCachedRepo_GetActors_Call
- type SubjectCachedRepo_GetByIDs_Call
- func (_c *SubjectCachedRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Subject, _a1 error) *SubjectCachedRepo_GetByIDs_Call
- func (_c *SubjectCachedRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32, filter subject.Filter)) *SubjectCachedRepo_GetByIDs_Call
- func (_c *SubjectCachedRepo_GetByIDs_Call) RunAndReturn(...) *SubjectCachedRepo_GetByIDs_Call
- type SubjectCachedRepo_GetCharacterRelated_Call
- func (_c *SubjectCachedRepo_GetCharacterRelated_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *SubjectCachedRepo_GetCharacterRelated_Call
- func (_c *SubjectCachedRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *SubjectCachedRepo_GetCharacterRelated_Call
- func (_c *SubjectCachedRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectCharacterRelation, error)) *SubjectCachedRepo_GetCharacterRelated_Call
- type SubjectCachedRepo_GetPersonRelated_Call
- func (_c *SubjectCachedRepo_GetPersonRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *SubjectCachedRepo_GetPersonRelated_Call
- func (_c *SubjectCachedRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *SubjectCachedRepo_GetPersonRelated_Call
- func (_c *SubjectCachedRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *SubjectCachedRepo_GetPersonRelated_Call
- type SubjectCachedRepo_GetSubjectRelated_Call
- func (_c *SubjectCachedRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectInternalRelation, _a1 error) *SubjectCachedRepo_GetSubjectRelated_Call
- func (_c *SubjectCachedRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *SubjectCachedRepo_GetSubjectRelated_Call
- func (_c *SubjectCachedRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectInternalRelation, error)) *SubjectCachedRepo_GetSubjectRelated_Call
- type SubjectCachedRepo_Get_Call
- func (_c *SubjectCachedRepo_Get_Call) Return(_a0 model.Subject, _a1 error) *SubjectCachedRepo_Get_Call
- func (_c *SubjectCachedRepo_Get_Call) Run(run func(ctx context.Context, id uint32, filter subject.Filter)) *SubjectCachedRepo_Get_Call
- func (_c *SubjectCachedRepo_Get_Call) RunAndReturn(run func(context.Context, uint32, subject.Filter) (model.Subject, error)) *SubjectCachedRepo_Get_Call
- type SubjectRepo
- func (_m *SubjectRepo) EXPECT() *SubjectRepo_Expecter
- func (_m *SubjectRepo) Get(ctx context.Context, id uint32, filter subject.Filter) (model.Subject, error)
- func (_m *SubjectRepo) GetActors(ctx context.Context, subjectID uint32, characterIDs []uint32) (map[uint32][]uint32, error)
- func (_m *SubjectRepo) GetByIDs(ctx context.Context, ids []uint32, filter subject.Filter) (map[uint32]model.Subject, error)
- func (_m *SubjectRepo) GetCharacterRelated(ctx context.Context, characterID uint32) ([]domain.SubjectCharacterRelation, error)
- func (_m *SubjectRepo) GetPersonRelated(ctx context.Context, personID uint32) ([]domain.SubjectPersonRelation, error)
- func (_m *SubjectRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectInternalRelation, error)
- type SubjectRepo_Expecter
- func (_e *SubjectRepo_Expecter) Get(ctx interface{}, id interface{}, filter interface{}) *SubjectRepo_Get_Call
- func (_e *SubjectRepo_Expecter) GetActors(ctx interface{}, subjectID interface{}, characterIDs interface{}) *SubjectRepo_GetActors_Call
- func (_e *SubjectRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}, filter interface{}) *SubjectRepo_GetByIDs_Call
- func (_e *SubjectRepo_Expecter) GetCharacterRelated(ctx interface{}, characterID interface{}) *SubjectRepo_GetCharacterRelated_Call
- func (_e *SubjectRepo_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *SubjectRepo_GetPersonRelated_Call
- func (_e *SubjectRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *SubjectRepo_GetSubjectRelated_Call
- type SubjectRepo_GetActors_Call
- func (_c *SubjectRepo_GetActors_Call) Return(_a0 map[uint32][]uint32, _a1 error) *SubjectRepo_GetActors_Call
- func (_c *SubjectRepo_GetActors_Call) Run(run func(ctx context.Context, subjectID uint32, characterIDs []uint32)) *SubjectRepo_GetActors_Call
- func (_c *SubjectRepo_GetActors_Call) RunAndReturn(run func(context.Context, uint32, []uint32) (map[uint32][]uint32, error)) *SubjectRepo_GetActors_Call
- type SubjectRepo_GetByIDs_Call
- func (_c *SubjectRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Subject, _a1 error) *SubjectRepo_GetByIDs_Call
- func (_c *SubjectRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32, filter subject.Filter)) *SubjectRepo_GetByIDs_Call
- func (_c *SubjectRepo_GetByIDs_Call) RunAndReturn(...) *SubjectRepo_GetByIDs_Call
- type SubjectRepo_GetCharacterRelated_Call
- func (_c *SubjectRepo_GetCharacterRelated_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *SubjectRepo_GetCharacterRelated_Call
- func (_c *SubjectRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *SubjectRepo_GetCharacterRelated_Call
- func (_c *SubjectRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectCharacterRelation, error)) *SubjectRepo_GetCharacterRelated_Call
- type SubjectRepo_GetPersonRelated_Call
- func (_c *SubjectRepo_GetPersonRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *SubjectRepo_GetPersonRelated_Call
- func (_c *SubjectRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *SubjectRepo_GetPersonRelated_Call
- func (_c *SubjectRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *SubjectRepo_GetPersonRelated_Call
- type SubjectRepo_GetSubjectRelated_Call
- func (_c *SubjectRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectInternalRelation, _a1 error) *SubjectRepo_GetSubjectRelated_Call
- func (_c *SubjectRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *SubjectRepo_GetSubjectRelated_Call
- func (_c *SubjectRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectInternalRelation, error)) *SubjectRepo_GetSubjectRelated_Call
- type SubjectRepo_Get_Call
- func (_c *SubjectRepo_Get_Call) Return(_a0 model.Subject, _a1 error) *SubjectRepo_Get_Call
- func (_c *SubjectRepo_Get_Call) Run(run func(ctx context.Context, id uint32, filter subject.Filter)) *SubjectRepo_Get_Call
- func (_c *SubjectRepo_Get_Call) RunAndReturn(run func(context.Context, uint32, subject.Filter) (model.Subject, error)) *SubjectRepo_Get_Call
- type TimeLineService
- func (_m *TimeLineService) ChangeEpisodeStatus(ctx context.Context, u auth.Auth, sbj model.Subject, _a3 episode.Episode) error
- func (_m *TimeLineService) ChangeSubjectCollection(ctx context.Context, u uint32, sbj model.Subject, ...) error
- func (_m *TimeLineService) ChangeSubjectProgress(ctx context.Context, u uint32, sbj model.Subject, epsUpdate uint32, ...) error
- func (_m *TimeLineService) EXPECT() *TimeLineService_Expecter
- type TimeLineService_ChangeEpisodeStatus_Call
- func (_c *TimeLineService_ChangeEpisodeStatus_Call) Return(_a0 error) *TimeLineService_ChangeEpisodeStatus_Call
- func (_c *TimeLineService_ChangeEpisodeStatus_Call) Run(...) *TimeLineService_ChangeEpisodeStatus_Call
- func (_c *TimeLineService_ChangeEpisodeStatus_Call) RunAndReturn(run func(context.Context, auth.Auth, model.Subject, episode.Episode) error) *TimeLineService_ChangeEpisodeStatus_Call
- type TimeLineService_ChangeSubjectCollection_Call
- func (_c *TimeLineService_ChangeSubjectCollection_Call) Return(_a0 error) *TimeLineService_ChangeSubjectCollection_Call
- func (_c *TimeLineService_ChangeSubjectCollection_Call) Run(run func(ctx context.Context, u uint32, sbj model.Subject, ...)) *TimeLineService_ChangeSubjectCollection_Call
- func (_c *TimeLineService_ChangeSubjectCollection_Call) RunAndReturn(...) *TimeLineService_ChangeSubjectCollection_Call
- type TimeLineService_ChangeSubjectProgress_Call
- func (_c *TimeLineService_ChangeSubjectProgress_Call) Return(_a0 error) *TimeLineService_ChangeSubjectProgress_Call
- func (_c *TimeLineService_ChangeSubjectProgress_Call) Run(...) *TimeLineService_ChangeSubjectProgress_Call
- func (_c *TimeLineService_ChangeSubjectProgress_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, uint32, uint32) error) *TimeLineService_ChangeSubjectProgress_Call
- type TimeLineService_Expecter
- func (_e *TimeLineService_Expecter) ChangeEpisodeStatus(ctx interface{}, u interface{}, sbj interface{}, _a3 interface{}) *TimeLineService_ChangeEpisodeStatus_Call
- func (_e *TimeLineService_Expecter) ChangeSubjectCollection(ctx interface{}, u interface{}, sbj interface{}, collect interface{}, ...) *TimeLineService_ChangeSubjectCollection_Call
- func (_e *TimeLineService_Expecter) ChangeSubjectProgress(ctx interface{}, u interface{}, sbj interface{}, epsUpdate interface{}, ...) *TimeLineService_ChangeSubjectProgress_Call
- type UserRepo
- func (_m *UserRepo) CheckIsFriendToOthers(ctx context.Context, selfID uint32, otherIDs ...uint32) (bool, error)
- func (_m *UserRepo) EXPECT() *UserRepo_Expecter
- func (_m *UserRepo) GetByID(ctx context.Context, userID uint32) (user.User, error)
- func (_m *UserRepo) GetByIDs(ctx context.Context, ids []uint32) (map[uint32]user.User, error)
- func (_m *UserRepo) GetByName(ctx context.Context, username string) (user.User, error)
- func (_m *UserRepo) GetFieldsByIDs(ctx context.Context, ids []uint32) (map[uint32]user.Fields, error)
- func (_m *UserRepo) GetFriends(ctx context.Context, userID uint32) (map[uint32]user.FriendItem, error)
- type UserRepo_CheckIsFriendToOthers_Call
- func (_c *UserRepo_CheckIsFriendToOthers_Call) Return(_a0 bool, _a1 error) *UserRepo_CheckIsFriendToOthers_Call
- func (_c *UserRepo_CheckIsFriendToOthers_Call) Run(run func(ctx context.Context, selfID uint32, otherIDs ...uint32)) *UserRepo_CheckIsFriendToOthers_Call
- func (_c *UserRepo_CheckIsFriendToOthers_Call) RunAndReturn(run func(context.Context, uint32, ...uint32) (bool, error)) *UserRepo_CheckIsFriendToOthers_Call
- type UserRepo_Expecter
- func (_e *UserRepo_Expecter) CheckIsFriendToOthers(ctx interface{}, selfID interface{}, otherIDs ...interface{}) *UserRepo_CheckIsFriendToOthers_Call
- func (_e *UserRepo_Expecter) GetByID(ctx interface{}, userID interface{}) *UserRepo_GetByID_Call
- func (_e *UserRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}) *UserRepo_GetByIDs_Call
- func (_e *UserRepo_Expecter) GetByName(ctx interface{}, username interface{}) *UserRepo_GetByName_Call
- func (_e *UserRepo_Expecter) GetFieldsByIDs(ctx interface{}, ids interface{}) *UserRepo_GetFieldsByIDs_Call
- func (_e *UserRepo_Expecter) GetFriends(ctx interface{}, userID interface{}) *UserRepo_GetFriends_Call
- type UserRepo_GetByID_Call
- func (_c *UserRepo_GetByID_Call) Return(_a0 user.User, _a1 error) *UserRepo_GetByID_Call
- func (_c *UserRepo_GetByID_Call) Run(run func(ctx context.Context, userID uint32)) *UserRepo_GetByID_Call
- func (_c *UserRepo_GetByID_Call) RunAndReturn(run func(context.Context, uint32) (user.User, error)) *UserRepo_GetByID_Call
- type UserRepo_GetByIDs_Call
- func (_c *UserRepo_GetByIDs_Call) Return(_a0 map[uint32]user.User, _a1 error) *UserRepo_GetByIDs_Call
- func (_c *UserRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *UserRepo_GetByIDs_Call
- func (_c *UserRepo_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]user.User, error)) *UserRepo_GetByIDs_Call
- type UserRepo_GetByName_Call
- func (_c *UserRepo_GetByName_Call) Return(_a0 user.User, _a1 error) *UserRepo_GetByName_Call
- func (_c *UserRepo_GetByName_Call) Run(run func(ctx context.Context, username string)) *UserRepo_GetByName_Call
- func (_c *UserRepo_GetByName_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserRepo_GetByName_Call
- type UserRepo_GetFieldsByIDs_Call
- func (_c *UserRepo_GetFieldsByIDs_Call) Return(_a0 map[uint32]user.Fields, _a1 error) *UserRepo_GetFieldsByIDs_Call
- func (_c *UserRepo_GetFieldsByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *UserRepo_GetFieldsByIDs_Call
- func (_c *UserRepo_GetFieldsByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]user.Fields, error)) *UserRepo_GetFieldsByIDs_Call
- type UserRepo_GetFriends_Call
- func (_c *UserRepo_GetFriends_Call) Return(_a0 map[uint32]user.FriendItem, _a1 error) *UserRepo_GetFriends_Call
- func (_c *UserRepo_GetFriends_Call) Run(run func(ctx context.Context, userID uint32)) *UserRepo_GetFriends_Call
- func (_c *UserRepo_GetFriends_Call) RunAndReturn(run func(context.Context, uint32) (map[uint32]user.FriendItem, error)) *UserRepo_GetFriends_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepo ¶
AuthRepo is an autogenerated mock type for the Repo type
func NewAuthRepo ¶
func NewAuthRepo(t mockConstructorTestingTNewAuthRepo) *AuthRepo
NewAuthRepo creates a new instance of AuthRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthRepo) CreateAccessToken ¶ added in v0.18.0
func (_m *AuthRepo) CreateAccessToken(ctx context.Context, userID uint32, name string, expiration time.Duration) (string, error)
CreateAccessToken provides a mock function with given fields: ctx, userID, name, expiration
func (*AuthRepo) DeleteAccessToken ¶ added in v0.18.0
DeleteAccessToken provides a mock function with given fields: ctx, tokenID
func (*AuthRepo) EXPECT ¶
func (_m *AuthRepo) EXPECT() *AuthRepo_Expecter
func (*AuthRepo) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
func (*AuthRepo) GetByToken ¶
GetByToken provides a mock function with given fields: ctx, token
func (*AuthRepo) GetPermission ¶
GetPermission provides a mock function with given fields: ctx, groupID
func (*AuthRepo) GetTokenByID ¶ added in v0.18.0
GetTokenByID provides a mock function with given fields: ctx, id
func (*AuthRepo) ListAccessToken ¶ added in v0.18.0
ListAccessToken provides a mock function with given fields: ctx, userID
type AuthRepo_CreateAccessToken_Call ¶ added in v0.18.0
AuthRepo_CreateAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccessToken'
func (*AuthRepo_CreateAccessToken_Call) Return ¶ added in v0.18.0
func (_c *AuthRepo_CreateAccessToken_Call) Return(token string, err error) *AuthRepo_CreateAccessToken_Call
func (*AuthRepo_CreateAccessToken_Call) Run ¶ added in v0.18.0
func (_c *AuthRepo_CreateAccessToken_Call) Run(run func(ctx context.Context, userID uint32, name string, expiration time.Duration)) *AuthRepo_CreateAccessToken_Call
func (*AuthRepo_CreateAccessToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_CreateAccessToken_Call) RunAndReturn(run func(context.Context, uint32, string, time.Duration) (string, error)) *AuthRepo_CreateAccessToken_Call
type AuthRepo_DeleteAccessToken_Call ¶ added in v0.18.0
AuthRepo_DeleteAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAccessToken'
func (*AuthRepo_DeleteAccessToken_Call) Return ¶ added in v0.18.0
func (_c *AuthRepo_DeleteAccessToken_Call) Return(_a0 bool, _a1 error) *AuthRepo_DeleteAccessToken_Call
func (*AuthRepo_DeleteAccessToken_Call) Run ¶ added in v0.18.0
func (_c *AuthRepo_DeleteAccessToken_Call) Run(run func(ctx context.Context, tokenID uint32)) *AuthRepo_DeleteAccessToken_Call
func (*AuthRepo_DeleteAccessToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_DeleteAccessToken_Call) RunAndReturn(run func(context.Context, uint32) (bool, error)) *AuthRepo_DeleteAccessToken_Call
type AuthRepo_Expecter ¶
type AuthRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthRepo_Expecter) CreateAccessToken ¶ added in v0.18.0
func (_e *AuthRepo_Expecter) CreateAccessToken(ctx interface{}, userID interface{}, name interface{}, expiration interface{}) *AuthRepo_CreateAccessToken_Call
CreateAccessToken is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- name string
- expiration time.Duration
func (*AuthRepo_Expecter) DeleteAccessToken ¶ added in v0.18.0
func (_e *AuthRepo_Expecter) DeleteAccessToken(ctx interface{}, tokenID interface{}) *AuthRepo_DeleteAccessToken_Call
DeleteAccessToken is a helper method to define mock.On call
- ctx context.Context
- tokenID uint32
func (*AuthRepo_Expecter) GetByEmail ¶
func (_e *AuthRepo_Expecter) GetByEmail(ctx interface{}, email interface{}) *AuthRepo_GetByEmail_Call
GetByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
func (*AuthRepo_Expecter) GetByToken ¶
func (_e *AuthRepo_Expecter) GetByToken(ctx interface{}, token interface{}) *AuthRepo_GetByToken_Call
GetByToken is a helper method to define mock.On call
- ctx context.Context
- token string
func (*AuthRepo_Expecter) GetPermission ¶
func (_e *AuthRepo_Expecter) GetPermission(ctx interface{}, groupID interface{}) *AuthRepo_GetPermission_Call
GetPermission is a helper method to define mock.On call
- ctx context.Context
- groupID uint8
func (*AuthRepo_Expecter) GetTokenByID ¶ added in v0.18.0
func (_e *AuthRepo_Expecter) GetTokenByID(ctx interface{}, id interface{}) *AuthRepo_GetTokenByID_Call
GetTokenByID is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*AuthRepo_Expecter) ListAccessToken ¶ added in v0.18.0
func (_e *AuthRepo_Expecter) ListAccessToken(ctx interface{}, userID interface{}) *AuthRepo_ListAccessToken_Call
ListAccessToken is a helper method to define mock.On call
- ctx context.Context
- userID uint32
type AuthRepo_GetByEmail_Call ¶
AuthRepo_GetByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByEmail'
func (*AuthRepo_GetByEmail_Call) Return ¶
func (_c *AuthRepo_GetByEmail_Call) Return(_a0 auth.UserInfo, _a1 []byte, _a2 error) *AuthRepo_GetByEmail_Call
func (*AuthRepo_GetByEmail_Call) Run ¶
func (_c *AuthRepo_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *AuthRepo_GetByEmail_Call
func (*AuthRepo_GetByEmail_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_GetByEmail_Call) RunAndReturn(run func(context.Context, string) (auth.UserInfo, []byte, error)) *AuthRepo_GetByEmail_Call
type AuthRepo_GetByToken_Call ¶
AuthRepo_GetByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByToken'
func (*AuthRepo_GetByToken_Call) Return ¶
func (_c *AuthRepo_GetByToken_Call) Return(_a0 auth.UserInfo, _a1 error) *AuthRepo_GetByToken_Call
func (*AuthRepo_GetByToken_Call) Run ¶
func (_c *AuthRepo_GetByToken_Call) Run(run func(ctx context.Context, token string)) *AuthRepo_GetByToken_Call
func (*AuthRepo_GetByToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_GetByToken_Call) RunAndReturn(run func(context.Context, string) (auth.UserInfo, error)) *AuthRepo_GetByToken_Call
type AuthRepo_GetPermission_Call ¶
AuthRepo_GetPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermission'
func (*AuthRepo_GetPermission_Call) Return ¶
func (_c *AuthRepo_GetPermission_Call) Return(_a0 auth.Permission, _a1 error) *AuthRepo_GetPermission_Call
func (*AuthRepo_GetPermission_Call) Run ¶
func (_c *AuthRepo_GetPermission_Call) Run(run func(ctx context.Context, groupID uint8)) *AuthRepo_GetPermission_Call
func (*AuthRepo_GetPermission_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_GetPermission_Call) RunAndReturn(run func(context.Context, uint8) (auth.Permission, error)) *AuthRepo_GetPermission_Call
type AuthRepo_GetTokenByID_Call ¶ added in v0.18.0
AuthRepo_GetTokenByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenByID'
func (*AuthRepo_GetTokenByID_Call) Return ¶ added in v0.18.0
func (_c *AuthRepo_GetTokenByID_Call) Return(_a0 auth.AccessToken, _a1 error) *AuthRepo_GetTokenByID_Call
func (*AuthRepo_GetTokenByID_Call) Run ¶ added in v0.18.0
func (_c *AuthRepo_GetTokenByID_Call) Run(run func(ctx context.Context, id uint32)) *AuthRepo_GetTokenByID_Call
func (*AuthRepo_GetTokenByID_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_GetTokenByID_Call) RunAndReturn(run func(context.Context, uint32) (auth.AccessToken, error)) *AuthRepo_GetTokenByID_Call
type AuthRepo_ListAccessToken_Call ¶ added in v0.18.0
AuthRepo_ListAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccessToken'
func (*AuthRepo_ListAccessToken_Call) Return ¶ added in v0.18.0
func (_c *AuthRepo_ListAccessToken_Call) Return(_a0 []auth.AccessToken, _a1 error) *AuthRepo_ListAccessToken_Call
func (*AuthRepo_ListAccessToken_Call) Run ¶ added in v0.18.0
func (_c *AuthRepo_ListAccessToken_Call) Run(run func(ctx context.Context, userID uint32)) *AuthRepo_ListAccessToken_Call
func (*AuthRepo_ListAccessToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthRepo_ListAccessToken_Call) RunAndReturn(run func(context.Context, uint32) ([]auth.AccessToken, error)) *AuthRepo_ListAccessToken_Call
type AuthService ¶
AuthService is an autogenerated mock type for the Service type
func NewAuthService ¶
func NewAuthService(t mockConstructorTestingTNewAuthService) *AuthService
NewAuthService creates a new instance of AuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthService) ComparePassword ¶
func (_m *AuthService) ComparePassword(hashed []byte, password string) (bool, error)
ComparePassword provides a mock function with given fields: hashed, password
func (*AuthService) CreateAccessToken ¶ added in v0.18.0
func (_m *AuthService) CreateAccessToken(ctx context.Context, userID uint32, name string, expiration time.Duration) (string, error)
CreateAccessToken provides a mock function with given fields: ctx, userID, name, expiration
func (*AuthService) DeleteAccessToken ¶ added in v0.18.0
DeleteAccessToken provides a mock function with given fields: ctx, tokenID
func (*AuthService) EXPECT ¶
func (_m *AuthService) EXPECT() *AuthService_Expecter
func (*AuthService) GetByToken ¶
GetByToken provides a mock function with given fields: ctx, token
func (*AuthService) GetTokenByID ¶ added in v0.18.0
func (_m *AuthService) GetTokenByID(ctx context.Context, tokenID uint32) (auth.AccessToken, error)
GetTokenByID provides a mock function with given fields: ctx, tokenID
func (*AuthService) ListAccessToken ¶ added in v0.18.0
func (_m *AuthService) ListAccessToken(ctx context.Context, userID uint32) ([]auth.AccessToken, error)
ListAccessToken provides a mock function with given fields: ctx, userID
type AuthService_ComparePassword_Call ¶
AuthService_ComparePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComparePassword'
func (*AuthService_ComparePassword_Call) Return ¶
func (_c *AuthService_ComparePassword_Call) Return(_a0 bool, _a1 error) *AuthService_ComparePassword_Call
func (*AuthService_ComparePassword_Call) Run ¶
func (_c *AuthService_ComparePassword_Call) Run(run func(hashed []byte, password string)) *AuthService_ComparePassword_Call
func (*AuthService_ComparePassword_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_ComparePassword_Call) RunAndReturn(run func([]byte, string) (bool, error)) *AuthService_ComparePassword_Call
type AuthService_CreateAccessToken_Call ¶ added in v0.18.0
AuthService_CreateAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccessToken'
func (*AuthService_CreateAccessToken_Call) Return ¶ added in v0.18.0
func (_c *AuthService_CreateAccessToken_Call) Return(token string, err error) *AuthService_CreateAccessToken_Call
func (*AuthService_CreateAccessToken_Call) Run ¶ added in v0.18.0
func (_c *AuthService_CreateAccessToken_Call) Run(run func(ctx context.Context, userID uint32, name string, expiration time.Duration)) *AuthService_CreateAccessToken_Call
func (*AuthService_CreateAccessToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_CreateAccessToken_Call) RunAndReturn(run func(context.Context, uint32, string, time.Duration) (string, error)) *AuthService_CreateAccessToken_Call
type AuthService_DeleteAccessToken_Call ¶ added in v0.18.0
AuthService_DeleteAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAccessToken'
func (*AuthService_DeleteAccessToken_Call) Return ¶ added in v0.18.0
func (_c *AuthService_DeleteAccessToken_Call) Return(_a0 bool, _a1 error) *AuthService_DeleteAccessToken_Call
func (*AuthService_DeleteAccessToken_Call) Run ¶ added in v0.18.0
func (_c *AuthService_DeleteAccessToken_Call) Run(run func(ctx context.Context, tokenID uint32)) *AuthService_DeleteAccessToken_Call
func (*AuthService_DeleteAccessToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_DeleteAccessToken_Call) RunAndReturn(run func(context.Context, uint32) (bool, error)) *AuthService_DeleteAccessToken_Call
type AuthService_Expecter ¶
type AuthService_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthService_Expecter) ComparePassword ¶
func (_e *AuthService_Expecter) ComparePassword(hashed interface{}, password interface{}) *AuthService_ComparePassword_Call
ComparePassword is a helper method to define mock.On call
- hashed []byte
- password string
func (*AuthService_Expecter) CreateAccessToken ¶ added in v0.18.0
func (_e *AuthService_Expecter) CreateAccessToken(ctx interface{}, userID interface{}, name interface{}, expiration interface{}) *AuthService_CreateAccessToken_Call
CreateAccessToken is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- name string
- expiration time.Duration
func (*AuthService_Expecter) DeleteAccessToken ¶ added in v0.18.0
func (_e *AuthService_Expecter) DeleteAccessToken(ctx interface{}, tokenID interface{}) *AuthService_DeleteAccessToken_Call
DeleteAccessToken is a helper method to define mock.On call
- ctx context.Context
- tokenID uint32
func (*AuthService_Expecter) GetByID ¶
func (_e *AuthService_Expecter) GetByID(ctx interface{}, userID interface{}) *AuthService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- userID uint32
func (*AuthService_Expecter) GetByToken ¶
func (_e *AuthService_Expecter) GetByToken(ctx interface{}, token interface{}) *AuthService_GetByToken_Call
GetByToken is a helper method to define mock.On call
- ctx context.Context
- token string
func (*AuthService_Expecter) GetTokenByID ¶ added in v0.18.0
func (_e *AuthService_Expecter) GetTokenByID(ctx interface{}, tokenID interface{}) *AuthService_GetTokenByID_Call
GetTokenByID is a helper method to define mock.On call
- ctx context.Context
- tokenID uint32
func (*AuthService_Expecter) ListAccessToken ¶ added in v0.18.0
func (_e *AuthService_Expecter) ListAccessToken(ctx interface{}, userID interface{}) *AuthService_ListAccessToken_Call
ListAccessToken is a helper method to define mock.On call
- ctx context.Context
- userID uint32
func (*AuthService_Expecter) Login ¶
func (_e *AuthService_Expecter) Login(ctx interface{}, email interface{}, password interface{}) *AuthService_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- email string
- password string
type AuthService_GetByID_Call ¶
AuthService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*AuthService_GetByID_Call) Return ¶
func (_c *AuthService_GetByID_Call) Return(_a0 auth.Auth, _a1 error) *AuthService_GetByID_Call
func (*AuthService_GetByID_Call) Run ¶
func (_c *AuthService_GetByID_Call) Run(run func(ctx context.Context, userID uint32)) *AuthService_GetByID_Call
func (*AuthService_GetByID_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_GetByID_Call) RunAndReturn(run func(context.Context, uint32) (auth.Auth, error)) *AuthService_GetByID_Call
type AuthService_GetByToken_Call ¶
AuthService_GetByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByToken'
func (*AuthService_GetByToken_Call) Return ¶
func (_c *AuthService_GetByToken_Call) Return(_a0 auth.Auth, _a1 error) *AuthService_GetByToken_Call
func (*AuthService_GetByToken_Call) Run ¶
func (_c *AuthService_GetByToken_Call) Run(run func(ctx context.Context, token string)) *AuthService_GetByToken_Call
func (*AuthService_GetByToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_GetByToken_Call) RunAndReturn(run func(context.Context, string) (auth.Auth, error)) *AuthService_GetByToken_Call
type AuthService_GetTokenByID_Call ¶ added in v0.18.0
AuthService_GetTokenByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenByID'
func (*AuthService_GetTokenByID_Call) Return ¶ added in v0.18.0
func (_c *AuthService_GetTokenByID_Call) Return(_a0 auth.AccessToken, _a1 error) *AuthService_GetTokenByID_Call
func (*AuthService_GetTokenByID_Call) Run ¶ added in v0.18.0
func (_c *AuthService_GetTokenByID_Call) Run(run func(ctx context.Context, tokenID uint32)) *AuthService_GetTokenByID_Call
func (*AuthService_GetTokenByID_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_GetTokenByID_Call) RunAndReturn(run func(context.Context, uint32) (auth.AccessToken, error)) *AuthService_GetTokenByID_Call
type AuthService_ListAccessToken_Call ¶ added in v0.18.0
AuthService_ListAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccessToken'
func (*AuthService_ListAccessToken_Call) Return ¶ added in v0.18.0
func (_c *AuthService_ListAccessToken_Call) Return(_a0 []auth.AccessToken, _a1 error) *AuthService_ListAccessToken_Call
func (*AuthService_ListAccessToken_Call) Run ¶ added in v0.18.0
func (_c *AuthService_ListAccessToken_Call) Run(run func(ctx context.Context, userID uint32)) *AuthService_ListAccessToken_Call
func (*AuthService_ListAccessToken_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_ListAccessToken_Call) RunAndReturn(run func(context.Context, uint32) ([]auth.AccessToken, error)) *AuthService_ListAccessToken_Call
type AuthService_Login_Call ¶
AuthService_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*AuthService_Login_Call) Return ¶
func (_c *AuthService_Login_Call) Return(_a0 auth.Auth, _a1 bool, _a2 error) *AuthService_Login_Call
func (*AuthService_Login_Call) Run ¶
func (_c *AuthService_Login_Call) Run(run func(ctx context.Context, email string, password string)) *AuthService_Login_Call
func (*AuthService_Login_Call) RunAndReturn ¶ added in v0.31.0
func (_c *AuthService_Login_Call) RunAndReturn(run func(context.Context, string, string) (auth.Auth, bool, error)) *AuthService_Login_Call
type CharacterRepo ¶
CharacterRepo is an autogenerated mock type for the Repo type
func NewCharacterRepo ¶
func NewCharacterRepo(t mockConstructorTestingTNewCharacterRepo) *CharacterRepo
NewCharacterRepo creates a new instance of CharacterRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CharacterRepo) EXPECT ¶
func (_m *CharacterRepo) EXPECT() *CharacterRepo_Expecter
func (*CharacterRepo) GetByIDs ¶
func (_m *CharacterRepo) GetByIDs(ctx context.Context, ids []uint32) (map[uint32]model.Character, error)
GetByIDs provides a mock function with given fields: ctx, ids
func (*CharacterRepo) GetPersonRelated ¶
func (_m *CharacterRepo) GetPersonRelated(ctx context.Context, personID uint32) ([]domain.PersonCharacterRelation, error)
GetPersonRelated provides a mock function with given fields: ctx, personID
func (*CharacterRepo) GetSubjectRelated ¶
func (_m *CharacterRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectCharacterRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
func (*CharacterRepo) GetSubjectRelationByIDs ¶ added in v0.31.0
func (_m *CharacterRepo) GetSubjectRelationByIDs(ctx context.Context, ids []character.SubjectCompositeID) ([]domain.SubjectCharacterRelation, error)
GetSubjectRelationByIDs provides a mock function with given fields: ctx, ids
type CharacterRepo_Expecter ¶
type CharacterRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*CharacterRepo_Expecter) Get ¶
func (_e *CharacterRepo_Expecter) Get(ctx interface{}, id interface{}) *CharacterRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*CharacterRepo_Expecter) GetByIDs ¶
func (_e *CharacterRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}) *CharacterRepo_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
func (*CharacterRepo_Expecter) GetPersonRelated ¶
func (_e *CharacterRepo_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *CharacterRepo_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
func (*CharacterRepo_Expecter) GetSubjectRelated ¶
func (_e *CharacterRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *CharacterRepo_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
func (*CharacterRepo_Expecter) GetSubjectRelationByIDs ¶ added in v0.31.0
func (_e *CharacterRepo_Expecter) GetSubjectRelationByIDs(ctx interface{}, ids interface{}) *CharacterRepo_GetSubjectRelationByIDs_Call
GetSubjectRelationByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []character.SubjectCompositeID
type CharacterRepo_GetByIDs_Call ¶
CharacterRepo_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*CharacterRepo_GetByIDs_Call) Return ¶
func (_c *CharacterRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Character, _a1 error) *CharacterRepo_GetByIDs_Call
func (*CharacterRepo_GetByIDs_Call) Run ¶
func (_c *CharacterRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *CharacterRepo_GetByIDs_Call
func (*CharacterRepo_GetByIDs_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CharacterRepo_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]model.Character, error)) *CharacterRepo_GetByIDs_Call
type CharacterRepo_GetPersonRelated_Call ¶
CharacterRepo_GetPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonRelated'
func (*CharacterRepo_GetPersonRelated_Call) Return ¶
func (_c *CharacterRepo_GetPersonRelated_Call) Return(_a0 []domain.PersonCharacterRelation, _a1 error) *CharacterRepo_GetPersonRelated_Call
func (*CharacterRepo_GetPersonRelated_Call) Run ¶
func (_c *CharacterRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *CharacterRepo_GetPersonRelated_Call
func (*CharacterRepo_GetPersonRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CharacterRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.PersonCharacterRelation, error)) *CharacterRepo_GetPersonRelated_Call
type CharacterRepo_GetSubjectRelated_Call ¶
CharacterRepo_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*CharacterRepo_GetSubjectRelated_Call) Return ¶
func (_c *CharacterRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *CharacterRepo_GetSubjectRelated_Call
func (*CharacterRepo_GetSubjectRelated_Call) Run ¶
func (_c *CharacterRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *CharacterRepo_GetSubjectRelated_Call
func (*CharacterRepo_GetSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CharacterRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectCharacterRelation, error)) *CharacterRepo_GetSubjectRelated_Call
type CharacterRepo_GetSubjectRelationByIDs_Call ¶ added in v0.31.0
CharacterRepo_GetSubjectRelationByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelationByIDs'
func (*CharacterRepo_GetSubjectRelationByIDs_Call) Return ¶ added in v0.31.0
func (_c *CharacterRepo_GetSubjectRelationByIDs_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *CharacterRepo_GetSubjectRelationByIDs_Call
func (*CharacterRepo_GetSubjectRelationByIDs_Call) Run ¶ added in v0.31.0
func (_c *CharacterRepo_GetSubjectRelationByIDs_Call) Run(run func(ctx context.Context, ids []character.SubjectCompositeID)) *CharacterRepo_GetSubjectRelationByIDs_Call
func (*CharacterRepo_GetSubjectRelationByIDs_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CharacterRepo_GetSubjectRelationByIDs_Call) RunAndReturn(run func(context.Context, []character.SubjectCompositeID) ([]domain.SubjectCharacterRelation, error)) *CharacterRepo_GetSubjectRelationByIDs_Call
type CharacterRepo_Get_Call ¶
CharacterRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CharacterRepo_Get_Call) Return ¶
func (_c *CharacterRepo_Get_Call) Return(_a0 model.Character, _a1 error) *CharacterRepo_Get_Call
func (*CharacterRepo_Get_Call) Run ¶
func (_c *CharacterRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *CharacterRepo_Get_Call
func (*CharacterRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CharacterRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Character, error)) *CharacterRepo_Get_Call
type CollectionRepo ¶ added in v0.20.9
CollectionRepo is an autogenerated mock type for the Repo type
func NewCollectionRepo ¶ added in v0.20.9
func NewCollectionRepo(t mockConstructorTestingTNewCollectionRepo) *CollectionRepo
NewCollectionRepo creates a new instance of CollectionRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CollectionRepo) CountSubjectCollections ¶ added in v0.20.9
func (_m *CollectionRepo) CountSubjectCollections(ctx context.Context, userID uint32, subjectType uint8, collectionType collection.SubjectCollection, showPrivate bool) (int64, error)
CountSubjectCollections provides a mock function with given fields: ctx, userID, subjectType, collectionType, showPrivate
func (*CollectionRepo) EXPECT ¶ added in v0.20.9
func (_m *CollectionRepo) EXPECT() *CollectionRepo_Expecter
func (*CollectionRepo) GetSubjectCollection ¶ added in v0.20.9
func (_m *CollectionRepo) GetSubjectCollection(ctx context.Context, userID uint32, subjectID uint32) (collection.UserSubjectCollection, error)
GetSubjectCollection provides a mock function with given fields: ctx, userID, subjectID
func (*CollectionRepo) GetSubjectEpisodesCollection ¶ added in v0.23.0
func (_m *CollectionRepo) GetSubjectEpisodesCollection(ctx context.Context, userID uint32, subjectID uint32) (collection.UserSubjectEpisodesCollection, error)
GetSubjectEpisodesCollection provides a mock function with given fields: ctx, userID, subjectID
func (*CollectionRepo) ListSubjectCollection ¶ added in v0.20.9
func (_m *CollectionRepo) ListSubjectCollection(ctx context.Context, userID uint32, subjectType uint8, collectionType collection.SubjectCollection, showPrivate bool, limit int, offset int) ([]collection.UserSubjectCollection, error)
ListSubjectCollection provides a mock function with given fields: ctx, userID, subjectType, collectionType, showPrivate, limit, offset
func (*CollectionRepo) UpdateEpisodeCollection ¶ added in v0.23.8
func (_m *CollectionRepo) UpdateEpisodeCollection(ctx context.Context, userID uint32, subjectID uint32, episodeIDs []uint32, _a4 collection.EpisodeCollection, at time.Time) (collection.UserSubjectEpisodesCollection, error)
UpdateEpisodeCollection provides a mock function with given fields: ctx, userID, subjectID, episodeIDs, _a4, at
func (*CollectionRepo) UpdateOrCreateSubjectCollection ¶ added in v0.32.9
func (_m *CollectionRepo) UpdateOrCreateSubjectCollection(ctx context.Context, userID uint32, subject model.Subject, at time.Time, ip string, update func(context.Context, *collection.Subject) (*collection.Subject, error)) error
UpdateOrCreateSubjectCollection provides a mock function with given fields: ctx, userID, subject, at, ip, update
func (*CollectionRepo) UpdateSubjectCollection ¶ added in v0.23.8
func (_m *CollectionRepo) UpdateSubjectCollection(ctx context.Context, userID uint32, subject model.Subject, at time.Time, ip string, update func(context.Context, *collection.Subject) (*collection.Subject, error)) error
UpdateSubjectCollection provides a mock function with given fields: ctx, userID, subject, at, ip, update
func (*CollectionRepo) WithQuery ¶ added in v0.23.8
func (_m *CollectionRepo) WithQuery(_a0 *query.Query) collections.Repo
WithQuery provides a mock function with given fields: _a0
type CollectionRepo_CountSubjectCollections_Call ¶ added in v0.20.9
CollectionRepo_CountSubjectCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountSubjectCollections'
func (*CollectionRepo_CountSubjectCollections_Call) Return ¶ added in v0.20.9
func (_c *CollectionRepo_CountSubjectCollections_Call) Return(_a0 int64, _a1 error) *CollectionRepo_CountSubjectCollections_Call
func (*CollectionRepo_CountSubjectCollections_Call) Run ¶ added in v0.20.9
func (_c *CollectionRepo_CountSubjectCollections_Call) Run(run func(ctx context.Context, userID uint32, subjectType uint8, collectionType collection.SubjectCollection, showPrivate bool)) *CollectionRepo_CountSubjectCollections_Call
func (*CollectionRepo_CountSubjectCollections_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_CountSubjectCollections_Call) RunAndReturn(run func(context.Context, uint32, uint8, collection.SubjectCollection, bool) (int64, error)) *CollectionRepo_CountSubjectCollections_Call
type CollectionRepo_Expecter ¶ added in v0.20.9
type CollectionRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*CollectionRepo_Expecter) CountSubjectCollections ¶ added in v0.20.9
func (_e *CollectionRepo_Expecter) CountSubjectCollections(ctx interface{}, userID interface{}, subjectType interface{}, collectionType interface{}, showPrivate interface{}) *CollectionRepo_CountSubjectCollections_Call
CountSubjectCollections is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectType uint8
- collectionType collection.SubjectCollection
- showPrivate bool
func (*CollectionRepo_Expecter) GetSubjectCollection ¶ added in v0.20.9
func (_e *CollectionRepo_Expecter) GetSubjectCollection(ctx interface{}, userID interface{}, subjectID interface{}) *CollectionRepo_GetSubjectCollection_Call
GetSubjectCollection is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectID uint32
func (*CollectionRepo_Expecter) GetSubjectEpisodesCollection ¶ added in v0.23.0
func (_e *CollectionRepo_Expecter) GetSubjectEpisodesCollection(ctx interface{}, userID interface{}, subjectID interface{}) *CollectionRepo_GetSubjectEpisodesCollection_Call
GetSubjectEpisodesCollection is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectID uint32
func (*CollectionRepo_Expecter) ListSubjectCollection ¶ added in v0.20.9
func (_e *CollectionRepo_Expecter) ListSubjectCollection(ctx interface{}, userID interface{}, subjectType interface{}, collectionType interface{}, showPrivate interface{}, limit interface{}, offset interface{}) *CollectionRepo_ListSubjectCollection_Call
ListSubjectCollection is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectType uint8
- collectionType collection.SubjectCollection
- showPrivate bool
- limit int
- offset int
func (*CollectionRepo_Expecter) UpdateEpisodeCollection ¶ added in v0.23.8
func (_e *CollectionRepo_Expecter) UpdateEpisodeCollection(ctx interface{}, userID interface{}, subjectID interface{}, episodeIDs interface{}, _a4 interface{}, at interface{}) *CollectionRepo_UpdateEpisodeCollection_Call
UpdateEpisodeCollection is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectID uint32
- episodeIDs []uint32
- _a4 collection.EpisodeCollection
- at time.Time
func (*CollectionRepo_Expecter) UpdateOrCreateSubjectCollection ¶ added in v0.32.9
func (_e *CollectionRepo_Expecter) UpdateOrCreateSubjectCollection(ctx interface{}, userID interface{}, subject interface{}, at interface{}, ip interface{}, update interface{}) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
UpdateOrCreateSubjectCollection is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subject model.Subject
- at time.Time
- ip string
- update func(context.Context , *collection.Subject)(*collection.Subject , error)
func (*CollectionRepo_Expecter) UpdateSubjectCollection ¶ added in v0.23.8
func (_e *CollectionRepo_Expecter) UpdateSubjectCollection(ctx interface{}, userID interface{}, subject interface{}, at interface{}, ip interface{}, update interface{}) *CollectionRepo_UpdateSubjectCollection_Call
UpdateSubjectCollection is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subject model.Subject
- at time.Time
- ip string
- update func(context.Context , *collection.Subject)(*collection.Subject , error)
func (*CollectionRepo_Expecter) WithQuery ¶ added in v0.23.8
func (_e *CollectionRepo_Expecter) WithQuery(_a0 interface{}) *CollectionRepo_WithQuery_Call
WithQuery is a helper method to define mock.On call
- _a0 *query.Query
type CollectionRepo_GetSubjectCollection_Call ¶ added in v0.20.9
CollectionRepo_GetSubjectCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectCollection'
func (*CollectionRepo_GetSubjectCollection_Call) Return ¶ added in v0.20.9
func (_c *CollectionRepo_GetSubjectCollection_Call) Return(_a0 collection.UserSubjectCollection, _a1 error) *CollectionRepo_GetSubjectCollection_Call
func (*CollectionRepo_GetSubjectCollection_Call) Run ¶ added in v0.20.9
func (_c *CollectionRepo_GetSubjectCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectID uint32)) *CollectionRepo_GetSubjectCollection_Call
func (*CollectionRepo_GetSubjectCollection_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_GetSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, uint32) (collection.UserSubjectCollection, error)) *CollectionRepo_GetSubjectCollection_Call
type CollectionRepo_GetSubjectEpisodesCollection_Call ¶ added in v0.23.0
CollectionRepo_GetSubjectEpisodesCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectEpisodesCollection'
func (*CollectionRepo_GetSubjectEpisodesCollection_Call) Run ¶ added in v0.23.0
func (_c *CollectionRepo_GetSubjectEpisodesCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectID uint32)) *CollectionRepo_GetSubjectEpisodesCollection_Call
func (*CollectionRepo_GetSubjectEpisodesCollection_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_GetSubjectEpisodesCollection_Call) RunAndReturn(run func(context.Context, uint32, uint32) (collection.UserSubjectEpisodesCollection, error)) *CollectionRepo_GetSubjectEpisodesCollection_Call
type CollectionRepo_ListSubjectCollection_Call ¶ added in v0.20.9
CollectionRepo_ListSubjectCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubjectCollection'
func (*CollectionRepo_ListSubjectCollection_Call) Return ¶ added in v0.20.9
func (_c *CollectionRepo_ListSubjectCollection_Call) Return(_a0 []collection.UserSubjectCollection, _a1 error) *CollectionRepo_ListSubjectCollection_Call
func (*CollectionRepo_ListSubjectCollection_Call) Run ¶ added in v0.20.9
func (_c *CollectionRepo_ListSubjectCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectType uint8, collectionType collection.SubjectCollection, showPrivate bool, limit int, offset int)) *CollectionRepo_ListSubjectCollection_Call
func (*CollectionRepo_ListSubjectCollection_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_ListSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, uint8, collection.SubjectCollection, bool, int, int) ([]collection.UserSubjectCollection, error)) *CollectionRepo_ListSubjectCollection_Call
type CollectionRepo_UpdateEpisodeCollection_Call ¶ added in v0.23.8
CollectionRepo_UpdateEpisodeCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEpisodeCollection'
func (*CollectionRepo_UpdateEpisodeCollection_Call) Return ¶ added in v0.23.8
func (_c *CollectionRepo_UpdateEpisodeCollection_Call) Return(_a0 collection.UserSubjectEpisodesCollection, _a1 error) *CollectionRepo_UpdateEpisodeCollection_Call
func (*CollectionRepo_UpdateEpisodeCollection_Call) Run ¶ added in v0.23.8
func (_c *CollectionRepo_UpdateEpisodeCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectID uint32, episodeIDs []uint32, _a4 collection.EpisodeCollection, at time.Time)) *CollectionRepo_UpdateEpisodeCollection_Call
func (*CollectionRepo_UpdateEpisodeCollection_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_UpdateEpisodeCollection_Call) RunAndReturn(run func(context.Context, uint32, uint32, []uint32, collection.EpisodeCollection, time.Time) (collection.UserSubjectEpisodesCollection, error)) *CollectionRepo_UpdateEpisodeCollection_Call
type CollectionRepo_UpdateOrCreateSubjectCollection_Call ¶ added in v0.32.9
CollectionRepo_UpdateOrCreateSubjectCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOrCreateSubjectCollection'
func (*CollectionRepo_UpdateOrCreateSubjectCollection_Call) Run ¶ added in v0.32.9
func (_c *CollectionRepo_UpdateOrCreateSubjectCollection_Call) Run(run func(ctx context.Context, userID uint32, subject model.Subject, at time.Time, ip string, update func(context.Context, *collection.Subject) (*collection.Subject, error))) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
func (*CollectionRepo_UpdateOrCreateSubjectCollection_Call) RunAndReturn ¶ added in v0.32.9
func (_c *CollectionRepo_UpdateOrCreateSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, time.Time, string, func(context.Context, *collection.Subject) (*collection.Subject, error)) error) *CollectionRepo_UpdateOrCreateSubjectCollection_Call
type CollectionRepo_UpdateSubjectCollection_Call ¶ added in v0.23.8
CollectionRepo_UpdateSubjectCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSubjectCollection'
func (*CollectionRepo_UpdateSubjectCollection_Call) Return ¶ added in v0.23.8
func (_c *CollectionRepo_UpdateSubjectCollection_Call) Return(_a0 error) *CollectionRepo_UpdateSubjectCollection_Call
func (*CollectionRepo_UpdateSubjectCollection_Call) Run ¶ added in v0.23.8
func (_c *CollectionRepo_UpdateSubjectCollection_Call) Run(run func(ctx context.Context, userID uint32, subject model.Subject, at time.Time, ip string, update func(context.Context, *collection.Subject) (*collection.Subject, error))) *CollectionRepo_UpdateSubjectCollection_Call
func (*CollectionRepo_UpdateSubjectCollection_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_UpdateSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, time.Time, string, func(context.Context, *collection.Subject) (*collection.Subject, error)) error) *CollectionRepo_UpdateSubjectCollection_Call
type CollectionRepo_WithQuery_Call ¶ added in v0.23.8
CollectionRepo_WithQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQuery'
func (*CollectionRepo_WithQuery_Call) Return ¶ added in v0.23.8
func (_c *CollectionRepo_WithQuery_Call) Return(_a0 collections.Repo) *CollectionRepo_WithQuery_Call
func (*CollectionRepo_WithQuery_Call) Run ¶ added in v0.23.8
func (_c *CollectionRepo_WithQuery_Call) Run(run func(_a0 *query.Query)) *CollectionRepo_WithQuery_Call
func (*CollectionRepo_WithQuery_Call) RunAndReturn ¶ added in v0.31.0
func (_c *CollectionRepo_WithQuery_Call) RunAndReturn(run func(*query.Query) collections.Repo) *CollectionRepo_WithQuery_Call
type EpisodeRepo ¶
EpisodeRepo is an autogenerated mock type for the Repo type
func NewEpisodeRepo ¶
func NewEpisodeRepo(t mockConstructorTestingTNewEpisodeRepo) *EpisodeRepo
NewEpisodeRepo creates a new instance of EpisodeRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EpisodeRepo) Count ¶
func (_m *EpisodeRepo) Count(ctx context.Context, subjectID uint32, filter episode.Filter) (int64, error)
Count provides a mock function with given fields: ctx, subjectID, filter
func (*EpisodeRepo) EXPECT ¶
func (_m *EpisodeRepo) EXPECT() *EpisodeRepo_Expecter
type EpisodeRepo_Count_Call ¶
EpisodeRepo_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*EpisodeRepo_Count_Call) Return ¶
func (_c *EpisodeRepo_Count_Call) Return(_a0 int64, _a1 error) *EpisodeRepo_Count_Call
func (*EpisodeRepo_Count_Call) Run ¶
func (_c *EpisodeRepo_Count_Call) Run(run func(ctx context.Context, subjectID uint32, filter episode.Filter)) *EpisodeRepo_Count_Call
func (*EpisodeRepo_Count_Call) RunAndReturn ¶ added in v0.31.0
func (_c *EpisodeRepo_Count_Call) RunAndReturn(run func(context.Context, uint32, episode.Filter) (int64, error)) *EpisodeRepo_Count_Call
type EpisodeRepo_Expecter ¶
type EpisodeRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*EpisodeRepo_Expecter) Count ¶
func (_e *EpisodeRepo_Expecter) Count(ctx interface{}, subjectID interface{}, filter interface{}) *EpisodeRepo_Count_Call
Count is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- filter episode.Filter
func (*EpisodeRepo_Expecter) Get ¶
func (_e *EpisodeRepo_Expecter) Get(ctx interface{}, episodeID interface{}) *EpisodeRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- episodeID uint32
func (*EpisodeRepo_Expecter) List ¶
func (_e *EpisodeRepo_Expecter) List(ctx interface{}, subjectID interface{}, filter interface{}, limit interface{}, offset interface{}) *EpisodeRepo_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- filter episode.Filter
- limit int
- offset int
func (*EpisodeRepo_Expecter) WithQuery ¶ added in v0.23.8
func (_e *EpisodeRepo_Expecter) WithQuery(_a0 interface{}) *EpisodeRepo_WithQuery_Call
WithQuery is a helper method to define mock.On call
- _a0 *query.Query
type EpisodeRepo_Get_Call ¶
EpisodeRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*EpisodeRepo_Get_Call) Return ¶
func (_c *EpisodeRepo_Get_Call) Return(_a0 episode.Episode, _a1 error) *EpisodeRepo_Get_Call
func (*EpisodeRepo_Get_Call) Run ¶
func (_c *EpisodeRepo_Get_Call) Run(run func(ctx context.Context, episodeID uint32)) *EpisodeRepo_Get_Call
func (*EpisodeRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *EpisodeRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (episode.Episode, error)) *EpisodeRepo_Get_Call
type EpisodeRepo_List_Call ¶
EpisodeRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*EpisodeRepo_List_Call) Return ¶
func (_c *EpisodeRepo_List_Call) Return(_a0 []episode.Episode, _a1 error) *EpisodeRepo_List_Call
func (*EpisodeRepo_List_Call) Run ¶
func (_c *EpisodeRepo_List_Call) Run(run func(ctx context.Context, subjectID uint32, filter episode.Filter, limit int, offset int)) *EpisodeRepo_List_Call
func (*EpisodeRepo_List_Call) RunAndReturn ¶ added in v0.31.0
type EpisodeRepo_WithQuery_Call ¶ added in v0.23.8
EpisodeRepo_WithQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQuery'
func (*EpisodeRepo_WithQuery_Call) Return ¶ added in v0.23.8
func (_c *EpisodeRepo_WithQuery_Call) Return(_a0 episode.Repo) *EpisodeRepo_WithQuery_Call
func (*EpisodeRepo_WithQuery_Call) Run ¶ added in v0.23.8
func (_c *EpisodeRepo_WithQuery_Call) Run(run func(_a0 *query.Query)) *EpisodeRepo_WithQuery_Call
func (*EpisodeRepo_WithQuery_Call) RunAndReturn ¶ added in v0.31.0
func (_c *EpisodeRepo_WithQuery_Call) RunAndReturn(run func(*query.Query) episode.Repo) *EpisodeRepo_WithQuery_Call
type IndexRepo ¶
IndexRepo is an autogenerated mock type for the Repo type
func NewIndexRepo ¶
func NewIndexRepo(t mockConstructorTestingTNewIndexRepo) *IndexRepo
NewIndexRepo creates a new instance of IndexRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IndexRepo) AddIndexCollect ¶ added in v0.32.0
AddIndexCollect provides a mock function with given fields: ctx, id, uid
func (*IndexRepo) AddOrUpdateIndexSubject ¶ added in v0.28.0
func (_m *IndexRepo) AddOrUpdateIndexSubject(ctx context.Context, id uint32, subjectID uint32, sort uint32, comment string) (*index.Subject, error)
AddOrUpdateIndexSubject provides a mock function with given fields: ctx, id, subjectID, sort, comment
func (*IndexRepo) CountSubjects ¶
func (_m *IndexRepo) CountSubjects(ctx context.Context, id uint32, subjectType uint8) (int64, error)
CountSubjects provides a mock function with given fields: ctx, id, subjectType
func (*IndexRepo) Delete ¶ added in v0.28.0
Delete provides a mock function with given fields: ctx, id
func (*IndexRepo) DeleteIndexCollect ¶ added in v0.32.0
DeleteIndexCollect provides a mock function with given fields: ctx, id, uid
func (*IndexRepo) DeleteIndexSubject ¶ added in v0.28.0
DeleteIndexSubject provides a mock function with given fields: ctx, id, subjectID
func (*IndexRepo) EXPECT ¶
func (_m *IndexRepo) EXPECT() *IndexRepo_Expecter
func (*IndexRepo) GetIndexCollect ¶ added in v0.32.0
func (_m *IndexRepo) GetIndexCollect(ctx context.Context, id uint32, uid uint32) (*index.IndexCollect, error)
GetIndexCollect provides a mock function with given fields: ctx, id, uid
func (*IndexRepo) ListSubjects ¶
func (_m *IndexRepo) ListSubjects(ctx context.Context, id uint32, subjectType uint8, limit int, offset int) ([]index.Subject, error)
ListSubjects provides a mock function with given fields: ctx, id, subjectType, limit, offset
type IndexRepo_AddIndexCollect_Call ¶ added in v0.32.0
IndexRepo_AddIndexCollect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddIndexCollect'
func (*IndexRepo_AddIndexCollect_Call) Return ¶ added in v0.32.0
func (_c *IndexRepo_AddIndexCollect_Call) Return(_a0 error) *IndexRepo_AddIndexCollect_Call
func (*IndexRepo_AddIndexCollect_Call) Run ¶ added in v0.32.0
func (_c *IndexRepo_AddIndexCollect_Call) Run(run func(ctx context.Context, id uint32, uid uint32)) *IndexRepo_AddIndexCollect_Call
func (*IndexRepo_AddIndexCollect_Call) RunAndReturn ¶ added in v0.32.0
func (_c *IndexRepo_AddIndexCollect_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *IndexRepo_AddIndexCollect_Call
type IndexRepo_AddOrUpdateIndexSubject_Call ¶ added in v0.28.0
IndexRepo_AddOrUpdateIndexSubject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOrUpdateIndexSubject'
func (*IndexRepo_AddOrUpdateIndexSubject_Call) Return ¶ added in v0.28.0
func (_c *IndexRepo_AddOrUpdateIndexSubject_Call) Return(_a0 *index.Subject, _a1 error) *IndexRepo_AddOrUpdateIndexSubject_Call
func (*IndexRepo_AddOrUpdateIndexSubject_Call) Run ¶ added in v0.28.0
func (_c *IndexRepo_AddOrUpdateIndexSubject_Call) Run(run func(ctx context.Context, id uint32, subjectID uint32, sort uint32, comment string)) *IndexRepo_AddOrUpdateIndexSubject_Call
func (*IndexRepo_AddOrUpdateIndexSubject_Call) RunAndReturn ¶ added in v0.31.0
type IndexRepo_CountSubjects_Call ¶
IndexRepo_CountSubjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountSubjects'
func (*IndexRepo_CountSubjects_Call) Return ¶
func (_c *IndexRepo_CountSubjects_Call) Return(_a0 int64, _a1 error) *IndexRepo_CountSubjects_Call
func (*IndexRepo_CountSubjects_Call) Run ¶
func (_c *IndexRepo_CountSubjects_Call) Run(run func(ctx context.Context, id uint32, subjectType uint8)) *IndexRepo_CountSubjects_Call
func (*IndexRepo_CountSubjects_Call) RunAndReturn ¶ added in v0.31.0
func (_c *IndexRepo_CountSubjects_Call) RunAndReturn(run func(context.Context, uint32, uint8) (int64, error)) *IndexRepo_CountSubjects_Call
type IndexRepo_DeleteIndexCollect_Call ¶ added in v0.32.0
IndexRepo_DeleteIndexCollect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIndexCollect'
func (*IndexRepo_DeleteIndexCollect_Call) Return ¶ added in v0.32.0
func (_c *IndexRepo_DeleteIndexCollect_Call) Return(_a0 error) *IndexRepo_DeleteIndexCollect_Call
func (*IndexRepo_DeleteIndexCollect_Call) Run ¶ added in v0.32.0
func (_c *IndexRepo_DeleteIndexCollect_Call) Run(run func(ctx context.Context, id uint32, uid uint32)) *IndexRepo_DeleteIndexCollect_Call
func (*IndexRepo_DeleteIndexCollect_Call) RunAndReturn ¶ added in v0.32.0
func (_c *IndexRepo_DeleteIndexCollect_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *IndexRepo_DeleteIndexCollect_Call
type IndexRepo_DeleteIndexSubject_Call ¶ added in v0.28.0
IndexRepo_DeleteIndexSubject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIndexSubject'
func (*IndexRepo_DeleteIndexSubject_Call) Return ¶ added in v0.28.0
func (_c *IndexRepo_DeleteIndexSubject_Call) Return(_a0 error) *IndexRepo_DeleteIndexSubject_Call
func (*IndexRepo_DeleteIndexSubject_Call) Run ¶ added in v0.28.0
func (_c *IndexRepo_DeleteIndexSubject_Call) Run(run func(ctx context.Context, id uint32, subjectID uint32)) *IndexRepo_DeleteIndexSubject_Call
func (*IndexRepo_DeleteIndexSubject_Call) RunAndReturn ¶ added in v0.31.0
func (_c *IndexRepo_DeleteIndexSubject_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *IndexRepo_DeleteIndexSubject_Call
type IndexRepo_Delete_Call ¶ added in v0.28.0
IndexRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IndexRepo_Delete_Call) Return ¶ added in v0.28.0
func (_c *IndexRepo_Delete_Call) Return(_a0 error) *IndexRepo_Delete_Call
func (*IndexRepo_Delete_Call) Run ¶ added in v0.28.0
func (_c *IndexRepo_Delete_Call) Run(run func(ctx context.Context, id uint32)) *IndexRepo_Delete_Call
func (*IndexRepo_Delete_Call) RunAndReturn ¶ added in v0.31.0
func (_c *IndexRepo_Delete_Call) RunAndReturn(run func(context.Context, uint32) error) *IndexRepo_Delete_Call
type IndexRepo_Expecter ¶
type IndexRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*IndexRepo_Expecter) AddIndexCollect ¶ added in v0.32.0
func (_e *IndexRepo_Expecter) AddIndexCollect(ctx interface{}, id interface{}, uid interface{}) *IndexRepo_AddIndexCollect_Call
AddIndexCollect is a helper method to define mock.On call
- ctx context.Context
- id uint32
- uid uint32
func (*IndexRepo_Expecter) AddOrUpdateIndexSubject ¶ added in v0.28.0
func (_e *IndexRepo_Expecter) AddOrUpdateIndexSubject(ctx interface{}, id interface{}, subjectID interface{}, sort interface{}, comment interface{}) *IndexRepo_AddOrUpdateIndexSubject_Call
AddOrUpdateIndexSubject is a helper method to define mock.On call
- ctx context.Context
- id uint32
- subjectID uint32
- sort uint32
- comment string
func (*IndexRepo_Expecter) CountSubjects ¶
func (_e *IndexRepo_Expecter) CountSubjects(ctx interface{}, id interface{}, subjectType interface{}) *IndexRepo_CountSubjects_Call
CountSubjects is a helper method to define mock.On call
- ctx context.Context
- id uint32
- subjectType uint8
func (*IndexRepo_Expecter) Delete ¶ added in v0.28.0
func (_e *IndexRepo_Expecter) Delete(ctx interface{}, id interface{}) *IndexRepo_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*IndexRepo_Expecter) DeleteIndexCollect ¶ added in v0.32.0
func (_e *IndexRepo_Expecter) DeleteIndexCollect(ctx interface{}, id interface{}, uid interface{}) *IndexRepo_DeleteIndexCollect_Call
DeleteIndexCollect is a helper method to define mock.On call
- ctx context.Context
- id uint32
- uid uint32
func (*IndexRepo_Expecter) DeleteIndexSubject ¶ added in v0.28.0
func (_e *IndexRepo_Expecter) DeleteIndexSubject(ctx interface{}, id interface{}, subjectID interface{}) *IndexRepo_DeleteIndexSubject_Call
DeleteIndexSubject is a helper method to define mock.On call
- ctx context.Context
- id uint32
- subjectID uint32
func (*IndexRepo_Expecter) Get ¶
func (_e *IndexRepo_Expecter) Get(ctx interface{}, id interface{}) *IndexRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*IndexRepo_Expecter) GetIndexCollect ¶ added in v0.32.0
func (_e *IndexRepo_Expecter) GetIndexCollect(ctx interface{}, id interface{}, uid interface{}) *IndexRepo_GetIndexCollect_Call
GetIndexCollect is a helper method to define mock.On call
- ctx context.Context
- id uint32
- uid uint32
func (*IndexRepo_Expecter) ListSubjects ¶
func (_e *IndexRepo_Expecter) ListSubjects(ctx interface{}, id interface{}, subjectType interface{}, limit interface{}, offset interface{}) *IndexRepo_ListSubjects_Call
ListSubjects is a helper method to define mock.On call
- ctx context.Context
- id uint32
- subjectType uint8
- limit int
- offset int
func (*IndexRepo_Expecter) New ¶ added in v0.28.0
func (_e *IndexRepo_Expecter) New(ctx interface{}, i interface{}) *IndexRepo_New_Call
New is a helper method to define mock.On call
- ctx context.Context
- i *model.Index
func (*IndexRepo_Expecter) Update ¶ added in v0.28.0
func (_e *IndexRepo_Expecter) Update(ctx interface{}, id interface{}, title interface{}, desc interface{}) *IndexRepo_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id uint32
- title string
- desc string
type IndexRepo_GetIndexCollect_Call ¶ added in v0.32.0
IndexRepo_GetIndexCollect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexCollect'
func (*IndexRepo_GetIndexCollect_Call) Return ¶ added in v0.32.0
func (_c *IndexRepo_GetIndexCollect_Call) Return(_a0 *index.IndexCollect, _a1 error) *IndexRepo_GetIndexCollect_Call
func (*IndexRepo_GetIndexCollect_Call) Run ¶ added in v0.32.0
func (_c *IndexRepo_GetIndexCollect_Call) Run(run func(ctx context.Context, id uint32, uid uint32)) *IndexRepo_GetIndexCollect_Call
func (*IndexRepo_GetIndexCollect_Call) RunAndReturn ¶ added in v0.32.0
func (_c *IndexRepo_GetIndexCollect_Call) RunAndReturn(run func(context.Context, uint32, uint32) (*index.IndexCollect, error)) *IndexRepo_GetIndexCollect_Call
type IndexRepo_Get_Call ¶
IndexRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*IndexRepo_Get_Call) Return ¶
func (_c *IndexRepo_Get_Call) Return(_a0 model.Index, _a1 error) *IndexRepo_Get_Call
func (*IndexRepo_Get_Call) Run ¶
func (_c *IndexRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *IndexRepo_Get_Call
func (*IndexRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *IndexRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Index, error)) *IndexRepo_Get_Call
type IndexRepo_ListSubjects_Call ¶
IndexRepo_ListSubjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubjects'
func (*IndexRepo_ListSubjects_Call) Return ¶
func (_c *IndexRepo_ListSubjects_Call) Return(_a0 []index.Subject, _a1 error) *IndexRepo_ListSubjects_Call
func (*IndexRepo_ListSubjects_Call) Run ¶
func (_c *IndexRepo_ListSubjects_Call) Run(run func(ctx context.Context, id uint32, subjectType uint8, limit int, offset int)) *IndexRepo_ListSubjects_Call
func (*IndexRepo_ListSubjects_Call) RunAndReturn ¶ added in v0.31.0
type IndexRepo_New_Call ¶ added in v0.28.0
IndexRepo_New_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'New'
func (*IndexRepo_New_Call) Return ¶ added in v0.28.0
func (_c *IndexRepo_New_Call) Return(_a0 error) *IndexRepo_New_Call
func (*IndexRepo_New_Call) Run ¶ added in v0.28.0
func (_c *IndexRepo_New_Call) Run(run func(ctx context.Context, i *model.Index)) *IndexRepo_New_Call
func (*IndexRepo_New_Call) RunAndReturn ¶ added in v0.31.0
func (_c *IndexRepo_New_Call) RunAndReturn(run func(context.Context, *model.Index) error) *IndexRepo_New_Call
type IndexRepo_Update_Call ¶ added in v0.28.0
IndexRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*IndexRepo_Update_Call) Return ¶ added in v0.28.0
func (_c *IndexRepo_Update_Call) Return(_a0 error) *IndexRepo_Update_Call
func (*IndexRepo_Update_Call) Run ¶ added in v0.28.0
func (_c *IndexRepo_Update_Call) Run(run func(ctx context.Context, id uint32, title string, desc string)) *IndexRepo_Update_Call
func (*IndexRepo_Update_Call) RunAndReturn ¶ added in v0.31.0
func (_c *IndexRepo_Update_Call) RunAndReturn(run func(context.Context, uint32, string, string) error) *IndexRepo_Update_Call
type NotificationRepo ¶ added in v0.29.0
NotificationRepo is an autogenerated mock type for the Repo type
func NewNotificationRepo ¶ added in v0.29.0
func NewNotificationRepo(t mockConstructorTestingTNewNotificationRepo) *NotificationRepo
NewNotificationRepo creates a new instance of NotificationRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NotificationRepo) Count ¶ added in v0.29.0
Count provides a mock function with given fields: ctx, userID
func (*NotificationRepo) EXPECT ¶ added in v0.29.0
func (_m *NotificationRepo) EXPECT() *NotificationRepo_Expecter
type NotificationRepo_Count_Call ¶ added in v0.29.0
NotificationRepo_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*NotificationRepo_Count_Call) Return ¶ added in v0.29.0
func (_c *NotificationRepo_Count_Call) Return(_a0 int64, _a1 error) *NotificationRepo_Count_Call
func (*NotificationRepo_Count_Call) Run ¶ added in v0.29.0
func (_c *NotificationRepo_Count_Call) Run(run func(ctx context.Context, userID uint32)) *NotificationRepo_Count_Call
func (*NotificationRepo_Count_Call) RunAndReturn ¶ added in v0.31.0
func (_c *NotificationRepo_Count_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *NotificationRepo_Count_Call
type NotificationRepo_Expecter ¶ added in v0.29.0
type NotificationRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationRepo_Expecter) Count ¶ added in v0.29.0
func (_e *NotificationRepo_Expecter) Count(ctx interface{}, userID interface{}) *NotificationRepo_Count_Call
Count is a helper method to define mock.On call
- ctx context.Context
- userID uint32
type PersonRepo ¶
PersonRepo is an autogenerated mock type for the Repo type
func NewPersonRepo ¶
func NewPersonRepo(t mockConstructorTestingTNewPersonRepo) *PersonRepo
NewPersonRepo creates a new instance of PersonRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PersonRepo) EXPECT ¶
func (_m *PersonRepo) EXPECT() *PersonRepo_Expecter
func (*PersonRepo) GetCharacterRelated ¶
func (_m *PersonRepo) GetCharacterRelated(ctx context.Context, subjectID uint32) ([]domain.PersonCharacterRelation, error)
GetCharacterRelated provides a mock function with given fields: ctx, subjectID
func (*PersonRepo) GetSubjectRelated ¶
func (_m *PersonRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectPersonRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
type PersonRepo_Expecter ¶
type PersonRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*PersonRepo_Expecter) Get ¶
func (_e *PersonRepo_Expecter) Get(ctx interface{}, id interface{}) *PersonRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*PersonRepo_Expecter) GetByIDs ¶
func (_e *PersonRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}) *PersonRepo_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
func (*PersonRepo_Expecter) GetCharacterRelated ¶
func (_e *PersonRepo_Expecter) GetCharacterRelated(ctx interface{}, subjectID interface{}) *PersonRepo_GetCharacterRelated_Call
GetCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
func (*PersonRepo_Expecter) GetSubjectRelated ¶
func (_e *PersonRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *PersonRepo_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
type PersonRepo_GetByIDs_Call ¶
PersonRepo_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*PersonRepo_GetByIDs_Call) Return ¶
func (_c *PersonRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Person, _a1 error) *PersonRepo_GetByIDs_Call
func (*PersonRepo_GetByIDs_Call) Run ¶
func (_c *PersonRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *PersonRepo_GetByIDs_Call
func (*PersonRepo_GetByIDs_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonRepo_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]model.Person, error)) *PersonRepo_GetByIDs_Call
type PersonRepo_GetCharacterRelated_Call ¶
PersonRepo_GetCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCharacterRelated'
func (*PersonRepo_GetCharacterRelated_Call) Return ¶
func (_c *PersonRepo_GetCharacterRelated_Call) Return(_a0 []domain.PersonCharacterRelation, _a1 error) *PersonRepo_GetCharacterRelated_Call
func (*PersonRepo_GetCharacterRelated_Call) Run ¶
func (_c *PersonRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonRepo_GetCharacterRelated_Call
func (*PersonRepo_GetCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.PersonCharacterRelation, error)) *PersonRepo_GetCharacterRelated_Call
type PersonRepo_GetSubjectRelated_Call ¶
PersonRepo_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*PersonRepo_GetSubjectRelated_Call) Return ¶
func (_c *PersonRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *PersonRepo_GetSubjectRelated_Call
func (*PersonRepo_GetSubjectRelated_Call) Run ¶
func (_c *PersonRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonRepo_GetSubjectRelated_Call
func (*PersonRepo_GetSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *PersonRepo_GetSubjectRelated_Call
type PersonRepo_Get_Call ¶
PersonRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*PersonRepo_Get_Call) Return ¶
func (_c *PersonRepo_Get_Call) Return(_a0 model.Person, _a1 error) *PersonRepo_Get_Call
func (*PersonRepo_Get_Call) Run ¶
func (_c *PersonRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *PersonRepo_Get_Call
func (*PersonRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonRepo_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Person, error)) *PersonRepo_Get_Call
type PersonService ¶
PersonService is an autogenerated mock type for the Repo type
func NewPersonService ¶
func NewPersonService(t mockConstructorTestingTNewPersonService) *PersonService
NewPersonService creates a new instance of PersonService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PersonService) EXPECT ¶
func (_m *PersonService) EXPECT() *PersonService_Expecter
func (*PersonService) GetByIDs ¶ added in v0.30.3
func (_m *PersonService) GetByIDs(ctx context.Context, ids []uint32) (map[uint32]model.Person, error)
GetByIDs provides a mock function with given fields: ctx, ids
func (*PersonService) GetCharacterRelated ¶
func (_m *PersonService) GetCharacterRelated(ctx context.Context, subjectID uint32) ([]domain.PersonCharacterRelation, error)
GetCharacterRelated provides a mock function with given fields: ctx, subjectID
func (*PersonService) GetSubjectRelated ¶
func (_m *PersonService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectPersonRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
type PersonService_Expecter ¶
type PersonService_Expecter struct {
// contains filtered or unexported fields
}
func (*PersonService_Expecter) Get ¶
func (_e *PersonService_Expecter) Get(ctx interface{}, id interface{}) *PersonService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*PersonService_Expecter) GetByIDs ¶ added in v0.30.3
func (_e *PersonService_Expecter) GetByIDs(ctx interface{}, ids interface{}) *PersonService_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
func (*PersonService_Expecter) GetCharacterRelated ¶
func (_e *PersonService_Expecter) GetCharacterRelated(ctx interface{}, subjectID interface{}) *PersonService_GetCharacterRelated_Call
GetCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
func (*PersonService_Expecter) GetSubjectRelated ¶
func (_e *PersonService_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *PersonService_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
type PersonService_GetByIDs_Call ¶ added in v0.30.3
PersonService_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*PersonService_GetByIDs_Call) Return ¶ added in v0.30.3
func (_c *PersonService_GetByIDs_Call) Return(_a0 map[uint32]model.Person, _a1 error) *PersonService_GetByIDs_Call
func (*PersonService_GetByIDs_Call) Run ¶ added in v0.30.3
func (_c *PersonService_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *PersonService_GetByIDs_Call
func (*PersonService_GetByIDs_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonService_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]model.Person, error)) *PersonService_GetByIDs_Call
type PersonService_GetCharacterRelated_Call ¶
PersonService_GetCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCharacterRelated'
func (*PersonService_GetCharacterRelated_Call) Return ¶
func (_c *PersonService_GetCharacterRelated_Call) Return(_a0 []domain.PersonCharacterRelation, _a1 error) *PersonService_GetCharacterRelated_Call
func (*PersonService_GetCharacterRelated_Call) Run ¶
func (_c *PersonService_GetCharacterRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonService_GetCharacterRelated_Call
func (*PersonService_GetCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonService_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.PersonCharacterRelation, error)) *PersonService_GetCharacterRelated_Call
type PersonService_GetSubjectRelated_Call ¶
PersonService_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*PersonService_GetSubjectRelated_Call) Return ¶
func (_c *PersonService_GetSubjectRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *PersonService_GetSubjectRelated_Call
func (*PersonService_GetSubjectRelated_Call) Run ¶
func (_c *PersonService_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *PersonService_GetSubjectRelated_Call
func (*PersonService_GetSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonService_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *PersonService_GetSubjectRelated_Call
type PersonService_Get_Call ¶
PersonService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*PersonService_Get_Call) Return ¶
func (_c *PersonService_Get_Call) Return(_a0 model.Person, _a1 error) *PersonService_Get_Call
func (*PersonService_Get_Call) Run ¶
func (_c *PersonService_Get_Call) Run(run func(ctx context.Context, id uint32)) *PersonService_Get_Call
func (*PersonService_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PersonService_Get_Call) RunAndReturn(run func(context.Context, uint32) (model.Person, error)) *PersonService_Get_Call
type PrivateMessageRepo ¶ added in v0.29.0
PrivateMessageRepo is an autogenerated mock type for the Repo type
func NewPrivateMessageRepo ¶ added in v0.29.0
func NewPrivateMessageRepo(t mockConstructorTestingTNewPrivateMessageRepo) *PrivateMessageRepo
NewPrivateMessageRepo creates a new instance of PrivateMessageRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PrivateMessageRepo) CountByFolder ¶ added in v0.29.0
func (_m *PrivateMessageRepo) CountByFolder(ctx context.Context, userID uint32, folder pm.FolderType) (int64, error)
CountByFolder provides a mock function with given fields: ctx, userID, folder
func (*PrivateMessageRepo) CountTypes ¶ added in v0.29.0
func (_m *PrivateMessageRepo) CountTypes(ctx context.Context, userID uint32) (pm.PrivateMessageTypeCounts, error)
CountTypes provides a mock function with given fields: ctx, userID
func (*PrivateMessageRepo) Create ¶ added in v0.29.0
func (_m *PrivateMessageRepo) Create(ctx context.Context, senderID uint32, receiverIDs []uint32, relatedIDFilter pm.IDFilter, title string, content string) ([]pm.PrivateMessage, error)
Create provides a mock function with given fields: ctx, senderID, receiverIDs, relatedIDFilter, title, content
func (*PrivateMessageRepo) Delete ¶ added in v0.29.0
Delete provides a mock function with given fields: ctx, userID, ids
func (*PrivateMessageRepo) EXPECT ¶ added in v0.29.0
func (_m *PrivateMessageRepo) EXPECT() *PrivateMessageRepo_Expecter
func (*PrivateMessageRepo) List ¶ added in v0.29.0
func (_m *PrivateMessageRepo) List(ctx context.Context, userID uint32, folder pm.FolderType, offset int, limit int) ([]pm.PrivateMessageListItem, error)
List provides a mock function with given fields: ctx, userID, folder, offset, limit
func (*PrivateMessageRepo) ListRecentContact ¶ added in v0.29.0
func (_m *PrivateMessageRepo) ListRecentContact(ctx context.Context, userID uint32) ([]uint32, error)
ListRecentContact provides a mock function with given fields: ctx, userID
func (*PrivateMessageRepo) ListRelated ¶ added in v0.29.0
func (_m *PrivateMessageRepo) ListRelated(ctx context.Context, userID uint32, id uint32) ([]pm.PrivateMessage, error)
ListRelated provides a mock function with given fields: ctx, userID, id
type PrivateMessageRepo_CountByFolder_Call ¶ added in v0.29.0
PrivateMessageRepo_CountByFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountByFolder'
func (*PrivateMessageRepo_CountByFolder_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_CountByFolder_Call) Return(_a0 int64, _a1 error) *PrivateMessageRepo_CountByFolder_Call
func (*PrivateMessageRepo_CountByFolder_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_CountByFolder_Call) Run(run func(ctx context.Context, userID uint32, folder pm.FolderType)) *PrivateMessageRepo_CountByFolder_Call
func (*PrivateMessageRepo_CountByFolder_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_CountByFolder_Call) RunAndReturn(run func(context.Context, uint32, pm.FolderType) (int64, error)) *PrivateMessageRepo_CountByFolder_Call
type PrivateMessageRepo_CountTypes_Call ¶ added in v0.29.0
PrivateMessageRepo_CountTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountTypes'
func (*PrivateMessageRepo_CountTypes_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_CountTypes_Call) Return(_a0 pm.PrivateMessageTypeCounts, _a1 error) *PrivateMessageRepo_CountTypes_Call
func (*PrivateMessageRepo_CountTypes_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_CountTypes_Call) Run(run func(ctx context.Context, userID uint32)) *PrivateMessageRepo_CountTypes_Call
func (*PrivateMessageRepo_CountTypes_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_CountTypes_Call) RunAndReturn(run func(context.Context, uint32) (pm.PrivateMessageTypeCounts, error)) *PrivateMessageRepo_CountTypes_Call
type PrivateMessageRepo_Create_Call ¶ added in v0.29.0
PrivateMessageRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PrivateMessageRepo_Create_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_Create_Call) Return(_a0 []pm.PrivateMessage, _a1 error) *PrivateMessageRepo_Create_Call
func (*PrivateMessageRepo_Create_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_Create_Call) Run(run func(ctx context.Context, senderID uint32, receiverIDs []uint32, relatedIDFilter pm.IDFilter, title string, content string)) *PrivateMessageRepo_Create_Call
func (*PrivateMessageRepo_Create_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_Create_Call) RunAndReturn(run func(context.Context, uint32, []uint32, pm.IDFilter, string, string) ([]pm.PrivateMessage, error)) *PrivateMessageRepo_Create_Call
type PrivateMessageRepo_Delete_Call ¶ added in v0.29.0
PrivateMessageRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PrivateMessageRepo_Delete_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_Delete_Call) Return(_a0 error) *PrivateMessageRepo_Delete_Call
func (*PrivateMessageRepo_Delete_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_Delete_Call) Run(run func(ctx context.Context, userID uint32, ids []uint32)) *PrivateMessageRepo_Delete_Call
func (*PrivateMessageRepo_Delete_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_Delete_Call) RunAndReturn(run func(context.Context, uint32, []uint32) error) *PrivateMessageRepo_Delete_Call
type PrivateMessageRepo_Expecter ¶ added in v0.29.0
type PrivateMessageRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*PrivateMessageRepo_Expecter) CountByFolder ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) CountByFolder(ctx interface{}, userID interface{}, folder interface{}) *PrivateMessageRepo_CountByFolder_Call
CountByFolder is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- folder pm.FolderType
func (*PrivateMessageRepo_Expecter) CountTypes ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) CountTypes(ctx interface{}, userID interface{}) *PrivateMessageRepo_CountTypes_Call
CountTypes is a helper method to define mock.On call
- ctx context.Context
- userID uint32
func (*PrivateMessageRepo_Expecter) Create ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) Create(ctx interface{}, senderID interface{}, receiverIDs interface{}, relatedIDFilter interface{}, title interface{}, content interface{}) *PrivateMessageRepo_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- senderID uint32
- receiverIDs []uint32
- relatedIDFilter pm.IDFilter
- title string
- content string
func (*PrivateMessageRepo_Expecter) Delete ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) Delete(ctx interface{}, userID interface{}, ids interface{}) *PrivateMessageRepo_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- ids []uint32
func (*PrivateMessageRepo_Expecter) List ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) List(ctx interface{}, userID interface{}, folder interface{}, offset interface{}, limit interface{}) *PrivateMessageRepo_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- folder pm.FolderType
- offset int
- limit int
func (*PrivateMessageRepo_Expecter) ListRecentContact ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) ListRecentContact(ctx interface{}, userID interface{}) *PrivateMessageRepo_ListRecentContact_Call
ListRecentContact is a helper method to define mock.On call
- ctx context.Context
- userID uint32
func (*PrivateMessageRepo_Expecter) ListRelated ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) ListRelated(ctx interface{}, userID interface{}, id interface{}) *PrivateMessageRepo_ListRelated_Call
ListRelated is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- id uint32
func (*PrivateMessageRepo_Expecter) MarkRead ¶ added in v0.29.0
func (_e *PrivateMessageRepo_Expecter) MarkRead(ctx interface{}, userID interface{}, relatedID interface{}) *PrivateMessageRepo_MarkRead_Call
MarkRead is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- relatedID uint32
type PrivateMessageRepo_ListRecentContact_Call ¶ added in v0.29.0
PrivateMessageRepo_ListRecentContact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRecentContact'
func (*PrivateMessageRepo_ListRecentContact_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_ListRecentContact_Call) Return(_a0 []uint32, _a1 error) *PrivateMessageRepo_ListRecentContact_Call
func (*PrivateMessageRepo_ListRecentContact_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_ListRecentContact_Call) Run(run func(ctx context.Context, userID uint32)) *PrivateMessageRepo_ListRecentContact_Call
func (*PrivateMessageRepo_ListRecentContact_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_ListRecentContact_Call) RunAndReturn(run func(context.Context, uint32) ([]uint32, error)) *PrivateMessageRepo_ListRecentContact_Call
type PrivateMessageRepo_ListRelated_Call ¶ added in v0.29.0
PrivateMessageRepo_ListRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRelated'
func (*PrivateMessageRepo_ListRelated_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_ListRelated_Call) Return(_a0 []pm.PrivateMessage, _a1 error) *PrivateMessageRepo_ListRelated_Call
func (*PrivateMessageRepo_ListRelated_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_ListRelated_Call) Run(run func(ctx context.Context, userID uint32, id uint32)) *PrivateMessageRepo_ListRelated_Call
func (*PrivateMessageRepo_ListRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_ListRelated_Call) RunAndReturn(run func(context.Context, uint32, uint32) ([]pm.PrivateMessage, error)) *PrivateMessageRepo_ListRelated_Call
type PrivateMessageRepo_List_Call ¶ added in v0.29.0
PrivateMessageRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PrivateMessageRepo_List_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_List_Call) Return(_a0 []pm.PrivateMessageListItem, _a1 error) *PrivateMessageRepo_List_Call
func (*PrivateMessageRepo_List_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_List_Call) Run(run func(ctx context.Context, userID uint32, folder pm.FolderType, offset int, limit int)) *PrivateMessageRepo_List_Call
func (*PrivateMessageRepo_List_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_List_Call) RunAndReturn(run func(context.Context, uint32, pm.FolderType, int, int) ([]pm.PrivateMessageListItem, error)) *PrivateMessageRepo_List_Call
type PrivateMessageRepo_MarkRead_Call ¶ added in v0.29.0
PrivateMessageRepo_MarkRead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkRead'
func (*PrivateMessageRepo_MarkRead_Call) Return ¶ added in v0.29.0
func (_c *PrivateMessageRepo_MarkRead_Call) Return(_a0 error) *PrivateMessageRepo_MarkRead_Call
func (*PrivateMessageRepo_MarkRead_Call) Run ¶ added in v0.29.0
func (_c *PrivateMessageRepo_MarkRead_Call) Run(run func(ctx context.Context, userID uint32, relatedID uint32)) *PrivateMessageRepo_MarkRead_Call
func (*PrivateMessageRepo_MarkRead_Call) RunAndReturn ¶ added in v0.31.0
func (_c *PrivateMessageRepo_MarkRead_Call) RunAndReturn(run func(context.Context, uint32, uint32) error) *PrivateMessageRepo_MarkRead_Call
type RedisCache ¶ added in v0.27.4
RedisCache is an autogenerated mock type for the RedisCache type
func NewRedisCache ¶ added in v0.27.4
func NewRedisCache(t mockConstructorTestingTNewRedisCache) *RedisCache
NewRedisCache creates a new instance of RedisCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RedisCache) Del ¶ added in v0.27.4
func (_m *RedisCache) Del(ctx context.Context, keys ...string) error
Del provides a mock function with given fields: ctx, keys
func (*RedisCache) EXPECT ¶ added in v0.27.4
func (_m *RedisCache) EXPECT() *RedisCache_Expecter
type RedisCache_Del_Call ¶ added in v0.27.4
RedisCache_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del'
func (*RedisCache_Del_Call) Return ¶ added in v0.27.4
func (_c *RedisCache_Del_Call) Return(_a0 error) *RedisCache_Del_Call
func (*RedisCache_Del_Call) Run ¶ added in v0.27.4
func (_c *RedisCache_Del_Call) Run(run func(ctx context.Context, keys ...string)) *RedisCache_Del_Call
func (*RedisCache_Del_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RedisCache_Del_Call) RunAndReturn(run func(context.Context, ...string) error) *RedisCache_Del_Call
type RedisCache_Expecter ¶ added in v0.27.4
type RedisCache_Expecter struct {
// contains filtered or unexported fields
}
func (*RedisCache_Expecter) Del ¶ added in v0.27.4
func (_e *RedisCache_Expecter) Del(ctx interface{}, keys ...interface{}) *RedisCache_Del_Call
Del is a helper method to define mock.On call
- ctx context.Context
- keys ...string
func (*RedisCache_Expecter) Get ¶ added in v0.27.4
func (_e *RedisCache_Expecter) Get(ctx interface{}, key interface{}, value interface{}) *RedisCache_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
func (*RedisCache_Expecter) Set ¶ added in v0.27.4
func (_e *RedisCache_Expecter) Set(ctx interface{}, key interface{}, value interface{}, ttl interface{}) *RedisCache_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
- ttl time.Duration
type RedisCache_Get_Call ¶ added in v0.27.4
RedisCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RedisCache_Get_Call) Return ¶ added in v0.27.4
func (_c *RedisCache_Get_Call) Return(_a0 bool, _a1 error) *RedisCache_Get_Call
func (*RedisCache_Get_Call) Run ¶ added in v0.27.4
func (_c *RedisCache_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *RedisCache_Get_Call
func (*RedisCache_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RedisCache_Get_Call) RunAndReturn(run func(context.Context, string, interface{}) (bool, error)) *RedisCache_Get_Call
type RedisCache_Set_Call ¶ added in v0.27.4
RedisCache_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*RedisCache_Set_Call) Return ¶ added in v0.27.4
func (_c *RedisCache_Set_Call) Return(_a0 error) *RedisCache_Set_Call
func (*RedisCache_Set_Call) Run ¶ added in v0.27.4
func (_c *RedisCache_Set_Call) Run(run func(ctx context.Context, key string, value interface{}, ttl time.Duration)) *RedisCache_Set_Call
func (*RedisCache_Set_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RedisCache_Set_Call) RunAndReturn(run func(context.Context, string, interface{}, time.Duration) error) *RedisCache_Set_Call
type RevisionRepo ¶
RevisionRepo is an autogenerated mock type for the Repo type
func NewRevisionRepo ¶
func NewRevisionRepo(t mockConstructorTestingTNewRevisionRepo) *RevisionRepo
NewRevisionRepo creates a new instance of RevisionRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RevisionRepo) CountCharacterRelated ¶
func (_m *RevisionRepo) CountCharacterRelated(ctx context.Context, characterID uint32) (int64, error)
CountCharacterRelated provides a mock function with given fields: ctx, characterID
func (*RevisionRepo) CountEpisodeRelated ¶ added in v0.30.0
CountEpisodeRelated provides a mock function with given fields: ctx, episodeID
func (*RevisionRepo) CountPersonRelated ¶
CountPersonRelated provides a mock function with given fields: ctx, personID
func (*RevisionRepo) CountSubjectRelated ¶
CountSubjectRelated provides a mock function with given fields: ctx, id
func (*RevisionRepo) EXPECT ¶
func (_m *RevisionRepo) EXPECT() *RevisionRepo_Expecter
func (*RevisionRepo) GetCharacterRelated ¶
func (_m *RevisionRepo) GetCharacterRelated(ctx context.Context, id uint32) (model.CharacterRevision, error)
GetCharacterRelated provides a mock function with given fields: ctx, id
func (*RevisionRepo) GetEpisodeRelated ¶ added in v0.30.0
func (_m *RevisionRepo) GetEpisodeRelated(ctx context.Context, id uint32) (model.EpisodeRevision, error)
GetEpisodeRelated provides a mock function with given fields: ctx, id
func (*RevisionRepo) GetPersonRelated ¶
func (_m *RevisionRepo) GetPersonRelated(ctx context.Context, id uint32) (model.PersonRevision, error)
GetPersonRelated provides a mock function with given fields: ctx, id
func (*RevisionRepo) GetSubjectRelated ¶
func (_m *RevisionRepo) GetSubjectRelated(ctx context.Context, id uint32) (model.SubjectRevision, error)
GetSubjectRelated provides a mock function with given fields: ctx, id
func (*RevisionRepo) ListCharacterRelated ¶
func (_m *RevisionRepo) ListCharacterRelated(ctx context.Context, characterID uint32, limit int, offset int) ([]model.CharacterRevision, error)
ListCharacterRelated provides a mock function with given fields: ctx, characterID, limit, offset
func (*RevisionRepo) ListEpisodeRelated ¶ added in v0.30.0
func (_m *RevisionRepo) ListEpisodeRelated(ctx context.Context, episodeID uint32, limit int, offset int) ([]model.EpisodeRevision, error)
ListEpisodeRelated provides a mock function with given fields: ctx, episodeID, limit, offset
func (*RevisionRepo) ListPersonRelated ¶
func (_m *RevisionRepo) ListPersonRelated(ctx context.Context, personID uint32, limit int, offset int) ([]model.PersonRevision, error)
ListPersonRelated provides a mock function with given fields: ctx, personID, limit, offset
func (*RevisionRepo) ListSubjectRelated ¶
func (_m *RevisionRepo) ListSubjectRelated(ctx context.Context, id uint32, limit int, offset int) ([]model.SubjectRevision, error)
ListSubjectRelated provides a mock function with given fields: ctx, id, limit, offset
type RevisionRepo_CountCharacterRelated_Call ¶
RevisionRepo_CountCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountCharacterRelated'
func (*RevisionRepo_CountCharacterRelated_Call) Return ¶
func (_c *RevisionRepo_CountCharacterRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountCharacterRelated_Call
func (*RevisionRepo_CountCharacterRelated_Call) Run ¶
func (_c *RevisionRepo_CountCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *RevisionRepo_CountCharacterRelated_Call
func (*RevisionRepo_CountCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_CountCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountCharacterRelated_Call
type RevisionRepo_CountEpisodeRelated_Call ¶ added in v0.30.0
RevisionRepo_CountEpisodeRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountEpisodeRelated'
func (*RevisionRepo_CountEpisodeRelated_Call) Return ¶ added in v0.30.0
func (_c *RevisionRepo_CountEpisodeRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountEpisodeRelated_Call
func (*RevisionRepo_CountEpisodeRelated_Call) Run ¶ added in v0.30.0
func (_c *RevisionRepo_CountEpisodeRelated_Call) Run(run func(ctx context.Context, episodeID uint32)) *RevisionRepo_CountEpisodeRelated_Call
func (*RevisionRepo_CountEpisodeRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_CountEpisodeRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountEpisodeRelated_Call
type RevisionRepo_CountPersonRelated_Call ¶
RevisionRepo_CountPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountPersonRelated'
func (*RevisionRepo_CountPersonRelated_Call) Return ¶
func (_c *RevisionRepo_CountPersonRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountPersonRelated_Call
func (*RevisionRepo_CountPersonRelated_Call) Run ¶
func (_c *RevisionRepo_CountPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *RevisionRepo_CountPersonRelated_Call
func (*RevisionRepo_CountPersonRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_CountPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountPersonRelated_Call
type RevisionRepo_CountSubjectRelated_Call ¶
RevisionRepo_CountSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountSubjectRelated'
func (*RevisionRepo_CountSubjectRelated_Call) Return ¶
func (_c *RevisionRepo_CountSubjectRelated_Call) Return(_a0 int64, _a1 error) *RevisionRepo_CountSubjectRelated_Call
func (*RevisionRepo_CountSubjectRelated_Call) Run ¶
func (_c *RevisionRepo_CountSubjectRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_CountSubjectRelated_Call
func (*RevisionRepo_CountSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_CountSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) (int64, error)) *RevisionRepo_CountSubjectRelated_Call
type RevisionRepo_Expecter ¶
type RevisionRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*RevisionRepo_Expecter) CountCharacterRelated ¶
func (_e *RevisionRepo_Expecter) CountCharacterRelated(ctx interface{}, characterID interface{}) *RevisionRepo_CountCharacterRelated_Call
CountCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- characterID uint32
func (*RevisionRepo_Expecter) CountEpisodeRelated ¶ added in v0.30.0
func (_e *RevisionRepo_Expecter) CountEpisodeRelated(ctx interface{}, episodeID interface{}) *RevisionRepo_CountEpisodeRelated_Call
CountEpisodeRelated is a helper method to define mock.On call
- ctx context.Context
- episodeID uint32
func (*RevisionRepo_Expecter) CountPersonRelated ¶
func (_e *RevisionRepo_Expecter) CountPersonRelated(ctx interface{}, personID interface{}) *RevisionRepo_CountPersonRelated_Call
CountPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
func (*RevisionRepo_Expecter) CountSubjectRelated ¶
func (_e *RevisionRepo_Expecter) CountSubjectRelated(ctx interface{}, id interface{}) *RevisionRepo_CountSubjectRelated_Call
CountSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*RevisionRepo_Expecter) GetCharacterRelated ¶
func (_e *RevisionRepo_Expecter) GetCharacterRelated(ctx interface{}, id interface{}) *RevisionRepo_GetCharacterRelated_Call
GetCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*RevisionRepo_Expecter) GetEpisodeRelated ¶ added in v0.30.0
func (_e *RevisionRepo_Expecter) GetEpisodeRelated(ctx interface{}, id interface{}) *RevisionRepo_GetEpisodeRelated_Call
GetEpisodeRelated is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*RevisionRepo_Expecter) GetPersonRelated ¶
func (_e *RevisionRepo_Expecter) GetPersonRelated(ctx interface{}, id interface{}) *RevisionRepo_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*RevisionRepo_Expecter) GetSubjectRelated ¶
func (_e *RevisionRepo_Expecter) GetSubjectRelated(ctx interface{}, id interface{}) *RevisionRepo_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*RevisionRepo_Expecter) ListCharacterRelated ¶
func (_e *RevisionRepo_Expecter) ListCharacterRelated(ctx interface{}, characterID interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListCharacterRelated_Call
ListCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- characterID uint32
- limit int
- offset int
func (*RevisionRepo_Expecter) ListEpisodeRelated ¶ added in v0.30.0
func (_e *RevisionRepo_Expecter) ListEpisodeRelated(ctx interface{}, episodeID interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListEpisodeRelated_Call
ListEpisodeRelated is a helper method to define mock.On call
- ctx context.Context
- episodeID uint32
- limit int
- offset int
func (*RevisionRepo_Expecter) ListPersonRelated ¶
func (_e *RevisionRepo_Expecter) ListPersonRelated(ctx interface{}, personID interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListPersonRelated_Call
ListPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
- limit int
- offset int
func (*RevisionRepo_Expecter) ListSubjectRelated ¶
func (_e *RevisionRepo_Expecter) ListSubjectRelated(ctx interface{}, id interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListSubjectRelated_Call
ListSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- id uint32
- limit int
- offset int
type RevisionRepo_GetCharacterRelated_Call ¶
RevisionRepo_GetCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCharacterRelated'
func (*RevisionRepo_GetCharacterRelated_Call) Return ¶
func (_c *RevisionRepo_GetCharacterRelated_Call) Return(_a0 model.CharacterRevision, _a1 error) *RevisionRepo_GetCharacterRelated_Call
func (*RevisionRepo_GetCharacterRelated_Call) Run ¶
func (_c *RevisionRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetCharacterRelated_Call
func (*RevisionRepo_GetCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.CharacterRevision, error)) *RevisionRepo_GetCharacterRelated_Call
type RevisionRepo_GetEpisodeRelated_Call ¶ added in v0.30.0
RevisionRepo_GetEpisodeRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpisodeRelated'
func (*RevisionRepo_GetEpisodeRelated_Call) Return ¶ added in v0.30.0
func (_c *RevisionRepo_GetEpisodeRelated_Call) Return(_a0 model.EpisodeRevision, _a1 error) *RevisionRepo_GetEpisodeRelated_Call
func (*RevisionRepo_GetEpisodeRelated_Call) Run ¶ added in v0.30.0
func (_c *RevisionRepo_GetEpisodeRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetEpisodeRelated_Call
func (*RevisionRepo_GetEpisodeRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_GetEpisodeRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.EpisodeRevision, error)) *RevisionRepo_GetEpisodeRelated_Call
type RevisionRepo_GetPersonRelated_Call ¶
RevisionRepo_GetPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonRelated'
func (*RevisionRepo_GetPersonRelated_Call) Return ¶
func (_c *RevisionRepo_GetPersonRelated_Call) Return(_a0 model.PersonRevision, _a1 error) *RevisionRepo_GetPersonRelated_Call
func (*RevisionRepo_GetPersonRelated_Call) Run ¶
func (_c *RevisionRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetPersonRelated_Call
func (*RevisionRepo_GetPersonRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.PersonRevision, error)) *RevisionRepo_GetPersonRelated_Call
type RevisionRepo_GetSubjectRelated_Call ¶
RevisionRepo_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*RevisionRepo_GetSubjectRelated_Call) Return ¶
func (_c *RevisionRepo_GetSubjectRelated_Call) Return(_a0 model.SubjectRevision, _a1 error) *RevisionRepo_GetSubjectRelated_Call
func (*RevisionRepo_GetSubjectRelated_Call) Run ¶
func (_c *RevisionRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, id uint32)) *RevisionRepo_GetSubjectRelated_Call
func (*RevisionRepo_GetSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) (model.SubjectRevision, error)) *RevisionRepo_GetSubjectRelated_Call
type RevisionRepo_ListCharacterRelated_Call ¶
RevisionRepo_ListCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCharacterRelated'
func (*RevisionRepo_ListCharacterRelated_Call) Return ¶
func (_c *RevisionRepo_ListCharacterRelated_Call) Return(_a0 []model.CharacterRevision, _a1 error) *RevisionRepo_ListCharacterRelated_Call
func (*RevisionRepo_ListCharacterRelated_Call) Run ¶
func (_c *RevisionRepo_ListCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32, limit int, offset int)) *RevisionRepo_ListCharacterRelated_Call
func (*RevisionRepo_ListCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_ListCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.CharacterRevision, error)) *RevisionRepo_ListCharacterRelated_Call
type RevisionRepo_ListEpisodeRelated_Call ¶ added in v0.30.0
RevisionRepo_ListEpisodeRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEpisodeRelated'
func (*RevisionRepo_ListEpisodeRelated_Call) Return ¶ added in v0.30.0
func (_c *RevisionRepo_ListEpisodeRelated_Call) Return(_a0 []model.EpisodeRevision, _a1 error) *RevisionRepo_ListEpisodeRelated_Call
func (*RevisionRepo_ListEpisodeRelated_Call) Run ¶ added in v0.30.0
func (_c *RevisionRepo_ListEpisodeRelated_Call) Run(run func(ctx context.Context, episodeID uint32, limit int, offset int)) *RevisionRepo_ListEpisodeRelated_Call
func (*RevisionRepo_ListEpisodeRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_ListEpisodeRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.EpisodeRevision, error)) *RevisionRepo_ListEpisodeRelated_Call
type RevisionRepo_ListPersonRelated_Call ¶
RevisionRepo_ListPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPersonRelated'
func (*RevisionRepo_ListPersonRelated_Call) Return ¶
func (_c *RevisionRepo_ListPersonRelated_Call) Return(_a0 []model.PersonRevision, _a1 error) *RevisionRepo_ListPersonRelated_Call
func (*RevisionRepo_ListPersonRelated_Call) Run ¶
func (_c *RevisionRepo_ListPersonRelated_Call) Run(run func(ctx context.Context, personID uint32, limit int, offset int)) *RevisionRepo_ListPersonRelated_Call
func (*RevisionRepo_ListPersonRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_ListPersonRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.PersonRevision, error)) *RevisionRepo_ListPersonRelated_Call
type RevisionRepo_ListSubjectRelated_Call ¶
RevisionRepo_ListSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubjectRelated'
func (*RevisionRepo_ListSubjectRelated_Call) Return ¶
func (_c *RevisionRepo_ListSubjectRelated_Call) Return(_a0 []model.SubjectRevision, _a1 error) *RevisionRepo_ListSubjectRelated_Call
func (*RevisionRepo_ListSubjectRelated_Call) Run ¶
func (_c *RevisionRepo_ListSubjectRelated_Call) Run(run func(ctx context.Context, id uint32, limit int, offset int)) *RevisionRepo_ListSubjectRelated_Call
func (*RevisionRepo_ListSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *RevisionRepo_ListSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32, int, int) ([]model.SubjectRevision, error)) *RevisionRepo_ListSubjectRelated_Call
type SearchClient ¶ added in v0.25.0
SearchClient is an autogenerated mock type for the Client type
func NewSearchClient ¶ added in v0.25.0
func NewSearchClient(t mockConstructorTestingTNewSearchClient) *SearchClient
NewSearchClient creates a new instance of SearchClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SearchClient) Close ¶ added in v0.29.10
func (_m *SearchClient) Close()
Close provides a mock function with given fields:
func (*SearchClient) EXPECT ¶ added in v0.25.0
func (_m *SearchClient) EXPECT() *SearchClient_Expecter
func (*SearchClient) Handle ¶ added in v0.25.0
func (_m *SearchClient) Handle(c echo.Context) error
Handle provides a mock function with given fields: c
func (*SearchClient) OnSubjectDelete ¶ added in v0.25.0
func (_m *SearchClient) OnSubjectDelete(ctx context.Context, id uint32) error
OnSubjectDelete provides a mock function with given fields: ctx, id
func (*SearchClient) OnSubjectUpdate ¶ added in v0.25.0
func (_m *SearchClient) OnSubjectUpdate(ctx context.Context, id uint32) error
OnSubjectUpdate provides a mock function with given fields: ctx, id
type SearchClient_Close_Call ¶ added in v0.29.10
SearchClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*SearchClient_Close_Call) Return ¶ added in v0.29.10
func (_c *SearchClient_Close_Call) Return() *SearchClient_Close_Call
func (*SearchClient_Close_Call) Run ¶ added in v0.29.10
func (_c *SearchClient_Close_Call) Run(run func()) *SearchClient_Close_Call
func (*SearchClient_Close_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SearchClient_Close_Call) RunAndReturn(run func()) *SearchClient_Close_Call
type SearchClient_Expecter ¶ added in v0.25.0
type SearchClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SearchClient_Expecter) Close ¶ added in v0.29.10
func (_e *SearchClient_Expecter) Close() *SearchClient_Close_Call
Close is a helper method to define mock.On call
func (*SearchClient_Expecter) Handle ¶ added in v0.25.0
func (_e *SearchClient_Expecter) Handle(c interface{}) *SearchClient_Handle_Call
Handle is a helper method to define mock.On call
- c echo.Context
func (*SearchClient_Expecter) OnSubjectDelete ¶ added in v0.25.0
func (_e *SearchClient_Expecter) OnSubjectDelete(ctx interface{}, id interface{}) *SearchClient_OnSubjectDelete_Call
OnSubjectDelete is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*SearchClient_Expecter) OnSubjectUpdate ¶ added in v0.25.0
func (_e *SearchClient_Expecter) OnSubjectUpdate(ctx interface{}, id interface{}) *SearchClient_OnSubjectUpdate_Call
OnSubjectUpdate is a helper method to define mock.On call
- ctx context.Context
- id uint32
type SearchClient_Handle_Call ¶ added in v0.25.0
SearchClient_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'
func (*SearchClient_Handle_Call) Return ¶ added in v0.25.0
func (_c *SearchClient_Handle_Call) Return(_a0 error) *SearchClient_Handle_Call
func (*SearchClient_Handle_Call) Run ¶ added in v0.25.0
func (_c *SearchClient_Handle_Call) Run(run func(c echo.Context)) *SearchClient_Handle_Call
func (*SearchClient_Handle_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SearchClient_Handle_Call) RunAndReturn(run func(echo.Context) error) *SearchClient_Handle_Call
type SearchClient_OnSubjectDelete_Call ¶ added in v0.25.0
SearchClient_OnSubjectDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnSubjectDelete'
func (*SearchClient_OnSubjectDelete_Call) Return ¶ added in v0.25.0
func (_c *SearchClient_OnSubjectDelete_Call) Return(_a0 error) *SearchClient_OnSubjectDelete_Call
func (*SearchClient_OnSubjectDelete_Call) Run ¶ added in v0.25.0
func (_c *SearchClient_OnSubjectDelete_Call) Run(run func(ctx context.Context, id uint32)) *SearchClient_OnSubjectDelete_Call
func (*SearchClient_OnSubjectDelete_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SearchClient_OnSubjectDelete_Call) RunAndReturn(run func(context.Context, uint32) error) *SearchClient_OnSubjectDelete_Call
type SearchClient_OnSubjectUpdate_Call ¶ added in v0.25.0
SearchClient_OnSubjectUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnSubjectUpdate'
func (*SearchClient_OnSubjectUpdate_Call) Return ¶ added in v0.25.0
func (_c *SearchClient_OnSubjectUpdate_Call) Return(_a0 error) *SearchClient_OnSubjectUpdate_Call
func (*SearchClient_OnSubjectUpdate_Call) Run ¶ added in v0.25.0
func (_c *SearchClient_OnSubjectUpdate_Call) Run(run func(ctx context.Context, id uint32)) *SearchClient_OnSubjectUpdate_Call
func (*SearchClient_OnSubjectUpdate_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SearchClient_OnSubjectUpdate_Call) RunAndReturn(run func(context.Context, uint32) error) *SearchClient_OnSubjectUpdate_Call
type SessionManager ¶
SessionManager is an autogenerated mock type for the Manager type
func NewSessionManager ¶
func NewSessionManager(t mockConstructorTestingTNewSessionManager) *SessionManager
NewSessionManager creates a new instance of SessionManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SessionManager) EXPECT ¶
func (_m *SessionManager) EXPECT() *SessionManager_Expecter
func (*SessionManager) Revoke ¶
func (_m *SessionManager) Revoke(ctx context.Context, key string) error
Revoke provides a mock function with given fields: ctx, key
func (*SessionManager) RevokeUser ¶
func (_m *SessionManager) RevokeUser(ctx context.Context, id uint32) error
RevokeUser provides a mock function with given fields: ctx, id
type SessionManager_Create_Call ¶
SessionManager_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SessionManager_Create_Call) Return ¶
func (_c *SessionManager_Create_Call) Return(_a0 string, _a1 session.Session, _a2 error) *SessionManager_Create_Call
func (*SessionManager_Create_Call) Run ¶
func (_c *SessionManager_Create_Call) Run(run func(ctx context.Context, a auth.Auth)) *SessionManager_Create_Call
func (*SessionManager_Create_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionManager_Create_Call) RunAndReturn(run func(context.Context, auth.Auth) (string, session.Session, error)) *SessionManager_Create_Call
type SessionManager_Expecter ¶
type SessionManager_Expecter struct {
// contains filtered or unexported fields
}
func (*SessionManager_Expecter) Create ¶
func (_e *SessionManager_Expecter) Create(ctx interface{}, a interface{}) *SessionManager_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- a auth.Auth
func (*SessionManager_Expecter) Get ¶
func (_e *SessionManager_Expecter) Get(ctx interface{}, key interface{}) *SessionManager_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
func (*SessionManager_Expecter) Revoke ¶
func (_e *SessionManager_Expecter) Revoke(ctx interface{}, key interface{}) *SessionManager_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- key string
func (*SessionManager_Expecter) RevokeUser ¶
func (_e *SessionManager_Expecter) RevokeUser(ctx interface{}, id interface{}) *SessionManager_RevokeUser_Call
RevokeUser is a helper method to define mock.On call
- ctx context.Context
- id uint32
type SessionManager_Get_Call ¶
SessionManager_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SessionManager_Get_Call) Return ¶
func (_c *SessionManager_Get_Call) Return(_a0 session.Session, _a1 error) *SessionManager_Get_Call
func (*SessionManager_Get_Call) Run ¶
func (_c *SessionManager_Get_Call) Run(run func(ctx context.Context, key string)) *SessionManager_Get_Call
func (*SessionManager_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionManager_Get_Call) RunAndReturn(run func(context.Context, string) (session.Session, error)) *SessionManager_Get_Call
type SessionManager_RevokeUser_Call ¶
SessionManager_RevokeUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeUser'
func (*SessionManager_RevokeUser_Call) Return ¶
func (_c *SessionManager_RevokeUser_Call) Return(_a0 error) *SessionManager_RevokeUser_Call
func (*SessionManager_RevokeUser_Call) Run ¶
func (_c *SessionManager_RevokeUser_Call) Run(run func(ctx context.Context, id uint32)) *SessionManager_RevokeUser_Call
func (*SessionManager_RevokeUser_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionManager_RevokeUser_Call) RunAndReturn(run func(context.Context, uint32) error) *SessionManager_RevokeUser_Call
type SessionManager_Revoke_Call ¶
SessionManager_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*SessionManager_Revoke_Call) Return ¶
func (_c *SessionManager_Revoke_Call) Return(_a0 error) *SessionManager_Revoke_Call
func (*SessionManager_Revoke_Call) Run ¶
func (_c *SessionManager_Revoke_Call) Run(run func(ctx context.Context, key string)) *SessionManager_Revoke_Call
func (*SessionManager_Revoke_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionManager_Revoke_Call) RunAndReturn(run func(context.Context, string) error) *SessionManager_Revoke_Call
type SessionRepo ¶ added in v0.20.13
SessionRepo is an autogenerated mock type for the Repo type
func NewSessionRepo ¶ added in v0.20.13
func NewSessionRepo(t mockConstructorTestingTNewSessionRepo) *SessionRepo
NewSessionRepo creates a new instance of SessionRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SessionRepo) Create ¶ added in v0.20.13
func (_m *SessionRepo) Create(ctx context.Context, userID uint32, regTime time.Time, keyGen func() string) (string, session.Session, error)
Create provides a mock function with given fields: ctx, userID, regTime, keyGen
func (*SessionRepo) EXPECT ¶ added in v0.20.13
func (_m *SessionRepo) EXPECT() *SessionRepo_Expecter
func (*SessionRepo) Get ¶ added in v0.20.13
Get provides a mock function with given fields: ctx, key
func (*SessionRepo) Revoke ¶ added in v0.20.13
func (_m *SessionRepo) Revoke(ctx context.Context, key string) error
Revoke provides a mock function with given fields: ctx, key
func (*SessionRepo) RevokeUser ¶ added in v0.20.13
RevokeUser provides a mock function with given fields: ctx, userID
type SessionRepo_Create_Call ¶ added in v0.20.13
SessionRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SessionRepo_Create_Call) Return ¶ added in v0.20.13
func (_c *SessionRepo_Create_Call) Return(key string, s session.Session, err error) *SessionRepo_Create_Call
func (*SessionRepo_Create_Call) Run ¶ added in v0.20.13
func (_c *SessionRepo_Create_Call) Run(run func(ctx context.Context, userID uint32, regTime time.Time, keyGen func() string)) *SessionRepo_Create_Call
func (*SessionRepo_Create_Call) RunAndReturn ¶ added in v0.31.0
type SessionRepo_Expecter ¶ added in v0.20.13
type SessionRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*SessionRepo_Expecter) Create ¶ added in v0.20.13
func (_e *SessionRepo_Expecter) Create(ctx interface{}, userID interface{}, regTime interface{}, keyGen interface{}) *SessionRepo_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- regTime time.Time
- keyGen func() string
func (*SessionRepo_Expecter) Get ¶ added in v0.20.13
func (_e *SessionRepo_Expecter) Get(ctx interface{}, key interface{}) *SessionRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
func (*SessionRepo_Expecter) Revoke ¶ added in v0.20.13
func (_e *SessionRepo_Expecter) Revoke(ctx interface{}, key interface{}) *SessionRepo_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- key string
func (*SessionRepo_Expecter) RevokeUser ¶ added in v0.20.13
func (_e *SessionRepo_Expecter) RevokeUser(ctx interface{}, userID interface{}) *SessionRepo_RevokeUser_Call
RevokeUser is a helper method to define mock.On call
- ctx context.Context
- userID uint32
type SessionRepo_Get_Call ¶ added in v0.20.13
SessionRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SessionRepo_Get_Call) Return ¶ added in v0.20.13
func (_c *SessionRepo_Get_Call) Return(_a0 session.Session, _a1 error) *SessionRepo_Get_Call
func (*SessionRepo_Get_Call) Run ¶ added in v0.20.13
func (_c *SessionRepo_Get_Call) Run(run func(ctx context.Context, key string)) *SessionRepo_Get_Call
func (*SessionRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionRepo_Get_Call) RunAndReturn(run func(context.Context, string) (session.Session, error)) *SessionRepo_Get_Call
type SessionRepo_RevokeUser_Call ¶ added in v0.20.13
SessionRepo_RevokeUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeUser'
func (*SessionRepo_RevokeUser_Call) Return ¶ added in v0.20.13
func (_c *SessionRepo_RevokeUser_Call) Return(keys []string, err error) *SessionRepo_RevokeUser_Call
func (*SessionRepo_RevokeUser_Call) Run ¶ added in v0.20.13
func (_c *SessionRepo_RevokeUser_Call) Run(run func(ctx context.Context, userID uint32)) *SessionRepo_RevokeUser_Call
func (*SessionRepo_RevokeUser_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionRepo_RevokeUser_Call) RunAndReturn(run func(context.Context, uint32) ([]string, error)) *SessionRepo_RevokeUser_Call
type SessionRepo_Revoke_Call ¶ added in v0.20.13
SessionRepo_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*SessionRepo_Revoke_Call) Return ¶ added in v0.20.13
func (_c *SessionRepo_Revoke_Call) Return(_a0 error) *SessionRepo_Revoke_Call
func (*SessionRepo_Revoke_Call) Run ¶ added in v0.20.13
func (_c *SessionRepo_Revoke_Call) Run(run func(ctx context.Context, key string)) *SessionRepo_Revoke_Call
func (*SessionRepo_Revoke_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SessionRepo_Revoke_Call) RunAndReturn(run func(context.Context, string) error) *SessionRepo_Revoke_Call
type SubjectCachedRepo ¶ added in v0.30.15
SubjectCachedRepo is an autogenerated mock type for the CachedRepo type
func NewSubjectCachedRepo ¶ added in v0.30.15
func NewSubjectCachedRepo(t mockConstructorTestingTNewSubjectCachedRepo) *SubjectCachedRepo
NewSubjectCachedRepo creates a new instance of SubjectCachedRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubjectCachedRepo) EXPECT ¶ added in v0.30.15
func (_m *SubjectCachedRepo) EXPECT() *SubjectCachedRepo_Expecter
func (*SubjectCachedRepo) Get ¶ added in v0.30.15
func (_m *SubjectCachedRepo) Get(ctx context.Context, id uint32, filter subject.Filter) (model.Subject, error)
Get provides a mock function with given fields: ctx, id, filter
func (*SubjectCachedRepo) GetActors ¶ added in v0.30.15
func (_m *SubjectCachedRepo) GetActors(ctx context.Context, subjectID uint32, characterIDs []uint32) (map[uint32][]uint32, error)
GetActors provides a mock function with given fields: ctx, subjectID, characterIDs
func (*SubjectCachedRepo) GetByIDs ¶ added in v0.30.15
func (_m *SubjectCachedRepo) GetByIDs(ctx context.Context, ids []uint32, filter subject.Filter) (map[uint32]model.Subject, error)
GetByIDs provides a mock function with given fields: ctx, ids, filter
func (*SubjectCachedRepo) GetCharacterRelated ¶ added in v0.30.15
func (_m *SubjectCachedRepo) GetCharacterRelated(ctx context.Context, characterID uint32) ([]domain.SubjectCharacterRelation, error)
GetCharacterRelated provides a mock function with given fields: ctx, characterID
func (*SubjectCachedRepo) GetPersonRelated ¶ added in v0.30.15
func (_m *SubjectCachedRepo) GetPersonRelated(ctx context.Context, personID uint32) ([]domain.SubjectPersonRelation, error)
GetPersonRelated provides a mock function with given fields: ctx, personID
func (*SubjectCachedRepo) GetSubjectRelated ¶ added in v0.30.15
func (_m *SubjectCachedRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectInternalRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
type SubjectCachedRepo_Expecter ¶ added in v0.30.15
type SubjectCachedRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*SubjectCachedRepo_Expecter) Get ¶ added in v0.30.15
func (_e *SubjectCachedRepo_Expecter) Get(ctx interface{}, id interface{}, filter interface{}) *SubjectCachedRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
- filter subject.Filter
func (*SubjectCachedRepo_Expecter) GetActors ¶ added in v0.30.15
func (_e *SubjectCachedRepo_Expecter) GetActors(ctx interface{}, subjectID interface{}, characterIDs interface{}) *SubjectCachedRepo_GetActors_Call
GetActors is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- characterIDs []uint32
func (*SubjectCachedRepo_Expecter) GetByIDs ¶ added in v0.30.15
func (_e *SubjectCachedRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}, filter interface{}) *SubjectCachedRepo_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
- filter subject.Filter
func (*SubjectCachedRepo_Expecter) GetCharacterRelated ¶ added in v0.30.15
func (_e *SubjectCachedRepo_Expecter) GetCharacterRelated(ctx interface{}, characterID interface{}) *SubjectCachedRepo_GetCharacterRelated_Call
GetCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- characterID uint32
func (*SubjectCachedRepo_Expecter) GetPersonRelated ¶ added in v0.30.15
func (_e *SubjectCachedRepo_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *SubjectCachedRepo_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
func (*SubjectCachedRepo_Expecter) GetSubjectRelated ¶ added in v0.30.15
func (_e *SubjectCachedRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *SubjectCachedRepo_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
type SubjectCachedRepo_GetActors_Call ¶ added in v0.30.15
SubjectCachedRepo_GetActors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActors'
func (*SubjectCachedRepo_GetActors_Call) Return ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetActors_Call) Return(_a0 map[uint32][]uint32, _a1 error) *SubjectCachedRepo_GetActors_Call
func (*SubjectCachedRepo_GetActors_Call) Run ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetActors_Call) Run(run func(ctx context.Context, subjectID uint32, characterIDs []uint32)) *SubjectCachedRepo_GetActors_Call
func (*SubjectCachedRepo_GetActors_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectCachedRepo_GetActors_Call) RunAndReturn(run func(context.Context, uint32, []uint32) (map[uint32][]uint32, error)) *SubjectCachedRepo_GetActors_Call
type SubjectCachedRepo_GetByIDs_Call ¶ added in v0.30.15
SubjectCachedRepo_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*SubjectCachedRepo_GetByIDs_Call) Return ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Subject, _a1 error) *SubjectCachedRepo_GetByIDs_Call
func (*SubjectCachedRepo_GetByIDs_Call) Run ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32, filter subject.Filter)) *SubjectCachedRepo_GetByIDs_Call
func (*SubjectCachedRepo_GetByIDs_Call) RunAndReturn ¶ added in v0.31.0
type SubjectCachedRepo_GetCharacterRelated_Call ¶ added in v0.30.15
SubjectCachedRepo_GetCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCharacterRelated'
func (*SubjectCachedRepo_GetCharacterRelated_Call) Return ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetCharacterRelated_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *SubjectCachedRepo_GetCharacterRelated_Call
func (*SubjectCachedRepo_GetCharacterRelated_Call) Run ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *SubjectCachedRepo_GetCharacterRelated_Call
func (*SubjectCachedRepo_GetCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectCachedRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectCharacterRelation, error)) *SubjectCachedRepo_GetCharacterRelated_Call
type SubjectCachedRepo_GetPersonRelated_Call ¶ added in v0.30.15
SubjectCachedRepo_GetPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonRelated'
func (*SubjectCachedRepo_GetPersonRelated_Call) Return ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetPersonRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *SubjectCachedRepo_GetPersonRelated_Call
func (*SubjectCachedRepo_GetPersonRelated_Call) Run ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *SubjectCachedRepo_GetPersonRelated_Call
func (*SubjectCachedRepo_GetPersonRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectCachedRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *SubjectCachedRepo_GetPersonRelated_Call
type SubjectCachedRepo_GetSubjectRelated_Call ¶ added in v0.30.15
SubjectCachedRepo_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*SubjectCachedRepo_GetSubjectRelated_Call) Return ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectInternalRelation, _a1 error) *SubjectCachedRepo_GetSubjectRelated_Call
func (*SubjectCachedRepo_GetSubjectRelated_Call) Run ¶ added in v0.30.15
func (_c *SubjectCachedRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *SubjectCachedRepo_GetSubjectRelated_Call
func (*SubjectCachedRepo_GetSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectCachedRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectInternalRelation, error)) *SubjectCachedRepo_GetSubjectRelated_Call
type SubjectCachedRepo_Get_Call ¶ added in v0.30.15
SubjectCachedRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubjectCachedRepo_Get_Call) Return ¶ added in v0.30.15
func (_c *SubjectCachedRepo_Get_Call) Return(_a0 model.Subject, _a1 error) *SubjectCachedRepo_Get_Call
func (*SubjectCachedRepo_Get_Call) Run ¶ added in v0.30.15
func (_c *SubjectCachedRepo_Get_Call) Run(run func(ctx context.Context, id uint32, filter subject.Filter)) *SubjectCachedRepo_Get_Call
func (*SubjectCachedRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectCachedRepo_Get_Call) RunAndReturn(run func(context.Context, uint32, subject.Filter) (model.Subject, error)) *SubjectCachedRepo_Get_Call
type SubjectRepo ¶
SubjectRepo is an autogenerated mock type for the Repo type
func NewSubjectRepo ¶
func NewSubjectRepo(t mockConstructorTestingTNewSubjectRepo) *SubjectRepo
NewSubjectRepo creates a new instance of SubjectRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubjectRepo) EXPECT ¶
func (_m *SubjectRepo) EXPECT() *SubjectRepo_Expecter
func (*SubjectRepo) Get ¶
func (_m *SubjectRepo) Get(ctx context.Context, id uint32, filter subject.Filter) (model.Subject, error)
Get provides a mock function with given fields: ctx, id, filter
func (*SubjectRepo) GetActors ¶
func (_m *SubjectRepo) GetActors(ctx context.Context, subjectID uint32, characterIDs []uint32) (map[uint32][]uint32, error)
GetActors provides a mock function with given fields: ctx, subjectID, characterIDs
func (*SubjectRepo) GetByIDs ¶
func (_m *SubjectRepo) GetByIDs(ctx context.Context, ids []uint32, filter subject.Filter) (map[uint32]model.Subject, error)
GetByIDs provides a mock function with given fields: ctx, ids, filter
func (*SubjectRepo) GetCharacterRelated ¶
func (_m *SubjectRepo) GetCharacterRelated(ctx context.Context, characterID uint32) ([]domain.SubjectCharacterRelation, error)
GetCharacterRelated provides a mock function with given fields: ctx, characterID
func (*SubjectRepo) GetPersonRelated ¶
func (_m *SubjectRepo) GetPersonRelated(ctx context.Context, personID uint32) ([]domain.SubjectPersonRelation, error)
GetPersonRelated provides a mock function with given fields: ctx, personID
func (*SubjectRepo) GetSubjectRelated ¶
func (_m *SubjectRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]domain.SubjectInternalRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
type SubjectRepo_Expecter ¶
type SubjectRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*SubjectRepo_Expecter) Get ¶
func (_e *SubjectRepo_Expecter) Get(ctx interface{}, id interface{}, filter interface{}) *SubjectRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
- filter subject.Filter
func (*SubjectRepo_Expecter) GetActors ¶
func (_e *SubjectRepo_Expecter) GetActors(ctx interface{}, subjectID interface{}, characterIDs interface{}) *SubjectRepo_GetActors_Call
GetActors is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- characterIDs []uint32
func (*SubjectRepo_Expecter) GetByIDs ¶
func (_e *SubjectRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}, filter interface{}) *SubjectRepo_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
- filter subject.Filter
func (*SubjectRepo_Expecter) GetCharacterRelated ¶
func (_e *SubjectRepo_Expecter) GetCharacterRelated(ctx interface{}, characterID interface{}) *SubjectRepo_GetCharacterRelated_Call
GetCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- characterID uint32
func (*SubjectRepo_Expecter) GetPersonRelated ¶
func (_e *SubjectRepo_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *SubjectRepo_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
func (*SubjectRepo_Expecter) GetSubjectRelated ¶
func (_e *SubjectRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *SubjectRepo_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
type SubjectRepo_GetActors_Call ¶
SubjectRepo_GetActors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActors'
func (*SubjectRepo_GetActors_Call) Return ¶
func (_c *SubjectRepo_GetActors_Call) Return(_a0 map[uint32][]uint32, _a1 error) *SubjectRepo_GetActors_Call
func (*SubjectRepo_GetActors_Call) Run ¶
func (_c *SubjectRepo_GetActors_Call) Run(run func(ctx context.Context, subjectID uint32, characterIDs []uint32)) *SubjectRepo_GetActors_Call
func (*SubjectRepo_GetActors_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectRepo_GetActors_Call) RunAndReturn(run func(context.Context, uint32, []uint32) (map[uint32][]uint32, error)) *SubjectRepo_GetActors_Call
type SubjectRepo_GetByIDs_Call ¶
SubjectRepo_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*SubjectRepo_GetByIDs_Call) Return ¶
func (_c *SubjectRepo_GetByIDs_Call) Return(_a0 map[uint32]model.Subject, _a1 error) *SubjectRepo_GetByIDs_Call
func (*SubjectRepo_GetByIDs_Call) Run ¶
func (_c *SubjectRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32, filter subject.Filter)) *SubjectRepo_GetByIDs_Call
func (*SubjectRepo_GetByIDs_Call) RunAndReturn ¶ added in v0.31.0
type SubjectRepo_GetCharacterRelated_Call ¶
SubjectRepo_GetCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCharacterRelated'
func (*SubjectRepo_GetCharacterRelated_Call) Return ¶
func (_c *SubjectRepo_GetCharacterRelated_Call) Return(_a0 []domain.SubjectCharacterRelation, _a1 error) *SubjectRepo_GetCharacterRelated_Call
func (*SubjectRepo_GetCharacterRelated_Call) Run ¶
func (_c *SubjectRepo_GetCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *SubjectRepo_GetCharacterRelated_Call
func (*SubjectRepo_GetCharacterRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectRepo_GetCharacterRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectCharacterRelation, error)) *SubjectRepo_GetCharacterRelated_Call
type SubjectRepo_GetPersonRelated_Call ¶
SubjectRepo_GetPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonRelated'
func (*SubjectRepo_GetPersonRelated_Call) Return ¶
func (_c *SubjectRepo_GetPersonRelated_Call) Return(_a0 []domain.SubjectPersonRelation, _a1 error) *SubjectRepo_GetPersonRelated_Call
func (*SubjectRepo_GetPersonRelated_Call) Run ¶
func (_c *SubjectRepo_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *SubjectRepo_GetPersonRelated_Call
func (*SubjectRepo_GetPersonRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectRepo_GetPersonRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectPersonRelation, error)) *SubjectRepo_GetPersonRelated_Call
type SubjectRepo_GetSubjectRelated_Call ¶
SubjectRepo_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*SubjectRepo_GetSubjectRelated_Call) Return ¶
func (_c *SubjectRepo_GetSubjectRelated_Call) Return(_a0 []domain.SubjectInternalRelation, _a1 error) *SubjectRepo_GetSubjectRelated_Call
func (*SubjectRepo_GetSubjectRelated_Call) Run ¶
func (_c *SubjectRepo_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *SubjectRepo_GetSubjectRelated_Call
func (*SubjectRepo_GetSubjectRelated_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectRepo_GetSubjectRelated_Call) RunAndReturn(run func(context.Context, uint32) ([]domain.SubjectInternalRelation, error)) *SubjectRepo_GetSubjectRelated_Call
type SubjectRepo_Get_Call ¶
SubjectRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubjectRepo_Get_Call) Return ¶
func (_c *SubjectRepo_Get_Call) Return(_a0 model.Subject, _a1 error) *SubjectRepo_Get_Call
func (*SubjectRepo_Get_Call) Run ¶
func (_c *SubjectRepo_Get_Call) Run(run func(ctx context.Context, id uint32, filter subject.Filter)) *SubjectRepo_Get_Call
func (*SubjectRepo_Get_Call) RunAndReturn ¶ added in v0.31.0
func (_c *SubjectRepo_Get_Call) RunAndReturn(run func(context.Context, uint32, subject.Filter) (model.Subject, error)) *SubjectRepo_Get_Call
type TimeLineService ¶ added in v0.30.17
TimeLineService is an autogenerated mock type for the Service type
func NewTimeLineService ¶ added in v0.30.17
func NewTimeLineService(t mockConstructorTestingTNewTimeLineService) *TimeLineService
NewTimeLineService creates a new instance of TimeLineService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TimeLineService) ChangeEpisodeStatus ¶ added in v0.30.17
func (_m *TimeLineService) ChangeEpisodeStatus(ctx context.Context, u auth.Auth, sbj model.Subject, _a3 episode.Episode) error
ChangeEpisodeStatus provides a mock function with given fields: ctx, u, sbj, _a3
func (*TimeLineService) ChangeSubjectCollection ¶ added in v0.30.17
func (_m *TimeLineService) ChangeSubjectCollection(ctx context.Context, u uint32, sbj model.Subject, collect collection.SubjectCollection, comment string, rate uint8) error
ChangeSubjectCollection provides a mock function with given fields: ctx, u, sbj, collect, comment, rate
func (*TimeLineService) ChangeSubjectProgress ¶ added in v0.30.17
func (_m *TimeLineService) ChangeSubjectProgress(ctx context.Context, u uint32, sbj model.Subject, epsUpdate uint32, volsUpdate uint32) error
ChangeSubjectProgress provides a mock function with given fields: ctx, u, sbj, epsUpdate, volsUpdate
func (*TimeLineService) EXPECT ¶ added in v0.30.17
func (_m *TimeLineService) EXPECT() *TimeLineService_Expecter
type TimeLineService_ChangeEpisodeStatus_Call ¶ added in v0.30.17
TimeLineService_ChangeEpisodeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangeEpisodeStatus'
func (*TimeLineService_ChangeEpisodeStatus_Call) Return ¶ added in v0.30.17
func (_c *TimeLineService_ChangeEpisodeStatus_Call) Return(_a0 error) *TimeLineService_ChangeEpisodeStatus_Call
func (*TimeLineService_ChangeEpisodeStatus_Call) Run ¶ added in v0.30.17
func (_c *TimeLineService_ChangeEpisodeStatus_Call) Run(run func(ctx context.Context, u auth.Auth, sbj model.Subject, _a3 episode.Episode)) *TimeLineService_ChangeEpisodeStatus_Call
func (*TimeLineService_ChangeEpisodeStatus_Call) RunAndReturn ¶ added in v0.31.0
type TimeLineService_ChangeSubjectCollection_Call ¶ added in v0.30.17
TimeLineService_ChangeSubjectCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangeSubjectCollection'
func (*TimeLineService_ChangeSubjectCollection_Call) Return ¶ added in v0.30.17
func (_c *TimeLineService_ChangeSubjectCollection_Call) Return(_a0 error) *TimeLineService_ChangeSubjectCollection_Call
func (*TimeLineService_ChangeSubjectCollection_Call) Run ¶ added in v0.30.17
func (_c *TimeLineService_ChangeSubjectCollection_Call) Run(run func(ctx context.Context, u uint32, sbj model.Subject, collect collection.SubjectCollection, comment string, rate uint8)) *TimeLineService_ChangeSubjectCollection_Call
func (*TimeLineService_ChangeSubjectCollection_Call) RunAndReturn ¶ added in v0.31.0
func (_c *TimeLineService_ChangeSubjectCollection_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, collection.SubjectCollection, string, uint8) error) *TimeLineService_ChangeSubjectCollection_Call
type TimeLineService_ChangeSubjectProgress_Call ¶ added in v0.30.17
TimeLineService_ChangeSubjectProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangeSubjectProgress'
func (*TimeLineService_ChangeSubjectProgress_Call) Return ¶ added in v0.30.17
func (_c *TimeLineService_ChangeSubjectProgress_Call) Return(_a0 error) *TimeLineService_ChangeSubjectProgress_Call
func (*TimeLineService_ChangeSubjectProgress_Call) Run ¶ added in v0.30.17
func (_c *TimeLineService_ChangeSubjectProgress_Call) Run(run func(ctx context.Context, u uint32, sbj model.Subject, epsUpdate uint32, volsUpdate uint32)) *TimeLineService_ChangeSubjectProgress_Call
func (*TimeLineService_ChangeSubjectProgress_Call) RunAndReturn ¶ added in v0.31.0
func (_c *TimeLineService_ChangeSubjectProgress_Call) RunAndReturn(run func(context.Context, uint32, model.Subject, uint32, uint32) error) *TimeLineService_ChangeSubjectProgress_Call
type TimeLineService_Expecter ¶ added in v0.30.17
type TimeLineService_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeLineService_Expecter) ChangeEpisodeStatus ¶ added in v0.30.17
func (_e *TimeLineService_Expecter) ChangeEpisodeStatus(ctx interface{}, u interface{}, sbj interface{}, _a3 interface{}) *TimeLineService_ChangeEpisodeStatus_Call
ChangeEpisodeStatus is a helper method to define mock.On call
- ctx context.Context
- u auth.Auth
- sbj model.Subject
- _a3 episode.Episode
func (*TimeLineService_Expecter) ChangeSubjectCollection ¶ added in v0.30.17
func (_e *TimeLineService_Expecter) ChangeSubjectCollection(ctx interface{}, u interface{}, sbj interface{}, collect interface{}, comment interface{}, rate interface{}) *TimeLineService_ChangeSubjectCollection_Call
ChangeSubjectCollection is a helper method to define mock.On call
- ctx context.Context
- u uint32
- sbj model.Subject
- collect collection.SubjectCollection
- comment string
- rate uint8
func (*TimeLineService_Expecter) ChangeSubjectProgress ¶ added in v0.30.17
func (_e *TimeLineService_Expecter) ChangeSubjectProgress(ctx interface{}, u interface{}, sbj interface{}, epsUpdate interface{}, volsUpdate interface{}) *TimeLineService_ChangeSubjectProgress_Call
ChangeSubjectProgress is a helper method to define mock.On call
- ctx context.Context
- u uint32
- sbj model.Subject
- epsUpdate uint32
- volsUpdate uint32
type UserRepo ¶
UserRepo is an autogenerated mock type for the Repo type
func NewUserRepo ¶
func NewUserRepo(t mockConstructorTestingTNewUserRepo) *UserRepo
NewUserRepo creates a new instance of UserRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserRepo) CheckIsFriendToOthers ¶ added in v0.29.0
func (_m *UserRepo) CheckIsFriendToOthers(ctx context.Context, selfID uint32, otherIDs ...uint32) (bool, error)
CheckIsFriendToOthers provides a mock function with given fields: ctx, selfID, otherIDs
func (*UserRepo) EXPECT ¶
func (_m *UserRepo) EXPECT() *UserRepo_Expecter
func (*UserRepo) GetFieldsByIDs ¶ added in v0.29.0
func (_m *UserRepo) GetFieldsByIDs(ctx context.Context, ids []uint32) (map[uint32]user.Fields, error)
GetFieldsByIDs provides a mock function with given fields: ctx, ids
func (*UserRepo) GetFriends ¶ added in v0.23.0
func (_m *UserRepo) GetFriends(ctx context.Context, userID uint32) (map[uint32]user.FriendItem, error)
GetFriends provides a mock function with given fields: ctx, userID
type UserRepo_CheckIsFriendToOthers_Call ¶ added in v0.29.0
UserRepo_CheckIsFriendToOthers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckIsFriendToOthers'
func (*UserRepo_CheckIsFriendToOthers_Call) Return ¶ added in v0.29.0
func (_c *UserRepo_CheckIsFriendToOthers_Call) Return(_a0 bool, _a1 error) *UserRepo_CheckIsFriendToOthers_Call
func (*UserRepo_CheckIsFriendToOthers_Call) Run ¶ added in v0.29.0
func (_c *UserRepo_CheckIsFriendToOthers_Call) Run(run func(ctx context.Context, selfID uint32, otherIDs ...uint32)) *UserRepo_CheckIsFriendToOthers_Call
func (*UserRepo_CheckIsFriendToOthers_Call) RunAndReturn ¶ added in v0.31.0
func (_c *UserRepo_CheckIsFriendToOthers_Call) RunAndReturn(run func(context.Context, uint32, ...uint32) (bool, error)) *UserRepo_CheckIsFriendToOthers_Call
type UserRepo_Expecter ¶
type UserRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*UserRepo_Expecter) CheckIsFriendToOthers ¶ added in v0.29.0
func (_e *UserRepo_Expecter) CheckIsFriendToOthers(ctx interface{}, selfID interface{}, otherIDs ...interface{}) *UserRepo_CheckIsFriendToOthers_Call
CheckIsFriendToOthers is a helper method to define mock.On call
- ctx context.Context
- selfID uint32
- otherIDs ...uint32
func (*UserRepo_Expecter) GetByID ¶
func (_e *UserRepo_Expecter) GetByID(ctx interface{}, userID interface{}) *UserRepo_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- userID uint32
func (*UserRepo_Expecter) GetByIDs ¶
func (_e *UserRepo_Expecter) GetByIDs(ctx interface{}, ids interface{}) *UserRepo_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
func (*UserRepo_Expecter) GetByName ¶
func (_e *UserRepo_Expecter) GetByName(ctx interface{}, username interface{}) *UserRepo_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- username string
func (*UserRepo_Expecter) GetFieldsByIDs ¶ added in v0.29.0
func (_e *UserRepo_Expecter) GetFieldsByIDs(ctx interface{}, ids interface{}) *UserRepo_GetFieldsByIDs_Call
GetFieldsByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []uint32
func (*UserRepo_Expecter) GetFriends ¶ added in v0.23.0
func (_e *UserRepo_Expecter) GetFriends(ctx interface{}, userID interface{}) *UserRepo_GetFriends_Call
GetFriends is a helper method to define mock.On call
- ctx context.Context
- userID uint32
type UserRepo_GetByID_Call ¶
UserRepo_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UserRepo_GetByID_Call) Return ¶
func (_c *UserRepo_GetByID_Call) Return(_a0 user.User, _a1 error) *UserRepo_GetByID_Call
func (*UserRepo_GetByID_Call) Run ¶
func (_c *UserRepo_GetByID_Call) Run(run func(ctx context.Context, userID uint32)) *UserRepo_GetByID_Call
func (*UserRepo_GetByID_Call) RunAndReturn ¶ added in v0.31.0
func (_c *UserRepo_GetByID_Call) RunAndReturn(run func(context.Context, uint32) (user.User, error)) *UserRepo_GetByID_Call
type UserRepo_GetByIDs_Call ¶
UserRepo_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*UserRepo_GetByIDs_Call) Return ¶
func (_c *UserRepo_GetByIDs_Call) Return(_a0 map[uint32]user.User, _a1 error) *UserRepo_GetByIDs_Call
func (*UserRepo_GetByIDs_Call) Run ¶
func (_c *UserRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *UserRepo_GetByIDs_Call
func (*UserRepo_GetByIDs_Call) RunAndReturn ¶ added in v0.31.0
func (_c *UserRepo_GetByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]user.User, error)) *UserRepo_GetByIDs_Call
type UserRepo_GetByName_Call ¶
UserRepo_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*UserRepo_GetByName_Call) Return ¶
func (_c *UserRepo_GetByName_Call) Return(_a0 user.User, _a1 error) *UserRepo_GetByName_Call
func (*UserRepo_GetByName_Call) Run ¶
func (_c *UserRepo_GetByName_Call) Run(run func(ctx context.Context, username string)) *UserRepo_GetByName_Call
func (*UserRepo_GetByName_Call) RunAndReturn ¶ added in v0.31.0
func (_c *UserRepo_GetByName_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserRepo_GetByName_Call
type UserRepo_GetFieldsByIDs_Call ¶ added in v0.29.0
UserRepo_GetFieldsByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldsByIDs'
func (*UserRepo_GetFieldsByIDs_Call) Return ¶ added in v0.29.0
func (_c *UserRepo_GetFieldsByIDs_Call) Return(_a0 map[uint32]user.Fields, _a1 error) *UserRepo_GetFieldsByIDs_Call
func (*UserRepo_GetFieldsByIDs_Call) Run ¶ added in v0.29.0
func (_c *UserRepo_GetFieldsByIDs_Call) Run(run func(ctx context.Context, ids []uint32)) *UserRepo_GetFieldsByIDs_Call
func (*UserRepo_GetFieldsByIDs_Call) RunAndReturn ¶ added in v0.31.0
func (_c *UserRepo_GetFieldsByIDs_Call) RunAndReturn(run func(context.Context, []uint32) (map[uint32]user.Fields, error)) *UserRepo_GetFieldsByIDs_Call
type UserRepo_GetFriends_Call ¶ added in v0.23.0
UserRepo_GetFriends_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFriends'
func (*UserRepo_GetFriends_Call) Return ¶ added in v0.23.0
func (_c *UserRepo_GetFriends_Call) Return(_a0 map[uint32]user.FriendItem, _a1 error) *UserRepo_GetFriends_Call
func (*UserRepo_GetFriends_Call) Run ¶ added in v0.23.0
func (_c *UserRepo_GetFriends_Call) Run(run func(ctx context.Context, userID uint32)) *UserRepo_GetFriends_Call
func (*UserRepo_GetFriends_Call) RunAndReturn ¶ added in v0.31.0
func (_c *UserRepo_GetFriends_Call) RunAndReturn(run func(context.Context, uint32) (map[uint32]user.FriendItem, error)) *UserRepo_GetFriends_Call
Source Files ¶
- AuthRepo.go
- AuthService.go
- CharacterRepo.go
- CollectionRepo.go
- EpisodeRepo.go
- IndexRepo.go
- NotificationRepo.go
- PersonRepo.go
- PersonService.go
- PrivateMessageRepo.go
- RedisCache.go
- RevisionRepo.go
- SearchClient.go
- SessionManager.go
- SessionRepo.go
- SubjectCachedRepo.go
- SubjectRepo.go
- TimeLineService.go
- UserRepo.go