Documentation ¶
Index ¶
- type AuthRepo
- type AuthRepo_Expecter
- type AuthRepo_GetByToken_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, characterID uint32) ([]domain.PersonCharacterRelation, error)
- func (_m *CharacterRepo) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]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{}, characterID interface{}) *CharacterRepo_GetPersonRelated_Call
- func (_e *CharacterRepo_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *CharacterRepo_GetSubjectRelated_Call
- type CharacterRepo_GetByIDs_Call
- type CharacterRepo_GetPersonRelated_Call
- type CharacterRepo_GetSubjectRelated_Call
- type CharacterRepo_Get_Call
- type CharacterService
- func (_m *CharacterService) EXPECT() *CharacterService_Expecter
- func (_m *CharacterService) Get(ctx context.Context, id uint32) (model.Character, error)
- func (_m *CharacterService) GetPersonRelated(ctx context.Context, personID uint32) ([]model.PersonCharacterRelation, error)
- func (_m *CharacterService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]model.SubjectCharacterRelation, error)
- type CharacterService_Expecter
- func (_e *CharacterService_Expecter) Get(ctx interface{}, id interface{}) *CharacterService_Get_Call
- func (_e *CharacterService_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *CharacterService_GetPersonRelated_Call
- func (_e *CharacterService_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *CharacterService_GetSubjectRelated_Call
- type CharacterService_GetPersonRelated_Call
- type CharacterService_GetSubjectRelated_Call
- type CharacterService_Get_Call
- type EpisodeRepo
- func (_m *EpisodeRepo) Count(ctx context.Context, subjectID uint32) (int64, error)
- func (_m *EpisodeRepo) CountByType(ctx context.Context, subjectID uint32, epType int8) (int64, error)
- func (_m *EpisodeRepo) EXPECT() *EpisodeRepo_Expecter
- func (_m *EpisodeRepo) Get(ctx context.Context, episodeID uint32) (model.Episode, error)
- func (_m *EpisodeRepo) List(ctx context.Context, subjectID uint32, limit int, offset int) ([]model.Episode, error)
- func (_m *EpisodeRepo) ListByType(ctx context.Context, subjectID uint32, epType int8, limit int, offset int) ([]model.Episode, error)
- type EpisodeRepo_CountByType_Call
- type EpisodeRepo_Count_Call
- type EpisodeRepo_Expecter
- func (_e *EpisodeRepo_Expecter) Count(ctx interface{}, subjectID interface{}) *EpisodeRepo_Count_Call
- func (_e *EpisodeRepo_Expecter) CountByType(ctx interface{}, subjectID interface{}, epType interface{}) *EpisodeRepo_CountByType_Call
- func (_e *EpisodeRepo_Expecter) Get(ctx interface{}, episodeID interface{}) *EpisodeRepo_Get_Call
- func (_e *EpisodeRepo_Expecter) List(ctx interface{}, subjectID interface{}, limit interface{}, offset interface{}) *EpisodeRepo_List_Call
- func (_e *EpisodeRepo_Expecter) ListByType(ctx interface{}, subjectID interface{}, epType interface{}, limit interface{}, ...) *EpisodeRepo_ListByType_Call
- type EpisodeRepo_Get_Call
- type EpisodeRepo_ListByType_Call
- type EpisodeRepo_List_Call
- type Generic
- type Generic_Expecter
- type Generic_Get_Call
- type Generic_Set_Call
- type IndexRepo
- func (_m *IndexRepo) CountSubjects(ctx context.Context, id uint32, subjectType uint8) (int64, error)
- func (_m *IndexRepo) EXPECT() *IndexRepo_Expecter
- func (_m *IndexRepo) Get(ctx context.Context, id uint32) (model.Index, error)
- func (_m *IndexRepo) ListSubjects(ctx context.Context, id uint32, subjectType uint8, limit int, offset int) ([]domain.IndexSubject, error)
- type IndexRepo_CountSubjects_Call
- type IndexRepo_Expecter
- func (_e *IndexRepo_Expecter) CountSubjects(ctx interface{}, id interface{}, subjectType interface{}) *IndexRepo_CountSubjects_Call
- func (_e *IndexRepo_Expecter) Get(ctx interface{}, id interface{}) *IndexRepo_Get_Call
- func (_e *IndexRepo_Expecter) ListSubjects(ctx interface{}, id interface{}, subjectType interface{}, limit interface{}, ...) *IndexRepo_ListSubjects_Call
- type IndexRepo_Get_Call
- type IndexRepo_ListSubjects_Call
- 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
- type PersonRepo_GetCharacterRelated_Call
- type PersonRepo_GetSubjectRelated_Call
- type 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) GetCharacterRelated(ctx context.Context, subjectID uint32) ([]model.PersonCharacterRelation, error)
- func (_m *PersonService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]model.SubjectPersonRelation, error)
- type PersonService_Expecter
- func (_e *PersonService_Expecter) Get(ctx interface{}, id interface{}) *PersonService_Get_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_GetCharacterRelated_Call
- type PersonService_GetSubjectRelated_Call
- type PersonService_Get_Call
- type RevisionRepo
- func (_m *RevisionRepo) CountPersonRelated(ctx context.Context, personID uint32) (int64, error)
- func (_m *RevisionRepo) EXPECT() *RevisionRepo_Expecter
- func (_m *RevisionRepo) GetPersonRelated(ctx context.Context, id uint32) (model.Revision, error)
- func (_m *RevisionRepo) ListPersonRelated(ctx context.Context, personID uint32, limit int, offset int) ([]model.Revision, error)
- type RevisionRepo_CountPersonRelated_Call
- type RevisionRepo_Expecter
- func (_e *RevisionRepo_Expecter) CountPersonRelated(ctx interface{}, personID interface{}) *RevisionRepo_CountPersonRelated_Call
- func (_e *RevisionRepo_Expecter) GetPersonRelated(ctx interface{}, id interface{}) *RevisionRepo_GetPersonRelated_Call
- func (_e *RevisionRepo_Expecter) ListPersonRelated(ctx interface{}, personID interface{}, limit interface{}, offset interface{}) *RevisionRepo_ListPersonRelated_Call
- type RevisionRepo_GetPersonRelated_Call
- type RevisionRepo_ListPersonRelated_Call
- type SubjectRepo
- func (_m *SubjectRepo) EXPECT() *SubjectRepo_Expecter
- func (_m *SubjectRepo) Get(ctx context.Context, id uint32) (model.Subject, error)
- func (_m *SubjectRepo) GetActors(ctx context.Context, subjectID uint32, characterIDs ...uint32) (map[uint32][]model.Person, error)
- func (_m *SubjectRepo) GetByIDs(ctx context.Context, ids ...uint32) (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{}) *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{}) *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
- type SubjectRepo_GetByIDs_Call
- type SubjectRepo_GetCharacterRelated_Call
- type SubjectRepo_GetPersonRelated_Call
- type SubjectRepo_GetSubjectRelated_Call
- type SubjectRepo_Get_Call
- type SubjectService
- func (_m *SubjectService) EXPECT() *SubjectService_Expecter
- func (_m *SubjectService) Get(ctx context.Context, id uint32) (model.Subject, error)
- func (_m *SubjectService) GetActors(ctx context.Context, subjectID uint32, characterIDs ...uint32) (map[uint32][]model.Person, error)
- func (_m *SubjectService) GetCharacterRelated(ctx context.Context, characterID uint32) ([]model.SubjectCharacterRelation, error)
- func (_m *SubjectService) GetPersonRelated(ctx context.Context, personID uint32) ([]model.SubjectPersonRelation, error)
- func (_m *SubjectService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]model.SubjectInternalRelation, error)
- type SubjectService_Expecter
- func (_e *SubjectService_Expecter) Get(ctx interface{}, id interface{}) *SubjectService_Get_Call
- func (_e *SubjectService_Expecter) GetActors(ctx interface{}, subjectID interface{}, characterIDs ...interface{}) *SubjectService_GetActors_Call
- func (_e *SubjectService_Expecter) GetCharacterRelated(ctx interface{}, characterID interface{}) *SubjectService_GetCharacterRelated_Call
- func (_e *SubjectService_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *SubjectService_GetPersonRelated_Call
- func (_e *SubjectService_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *SubjectService_GetSubjectRelated_Call
- type SubjectService_GetActors_Call
- type SubjectService_GetCharacterRelated_Call
- type SubjectService_GetPersonRelated_Call
- type SubjectService_GetSubjectRelated_Call
- type SubjectService_Get_Call
- type UserRepo
- func (_m *UserRepo) CountCollections(ctx context.Context, userID uint32, subjectType uint8, collectionType uint8, ...) (int64, error)
- func (_m *UserRepo) EXPECT() *UserRepo_Expecter
- func (_m *UserRepo) GetByID(ctx context.Context, userID uint32) (model.User, error)
- func (_m *UserRepo) GetByIDs(ctx context.Context, ids ...uint32) (map[uint32]model.User, error)
- func (_m *UserRepo) GetByName(ctx context.Context, username string) (model.User, error)
- func (_m *UserRepo) ListCollections(ctx context.Context, userID uint32, subjectType uint8, collectionType uint8, ...) ([]model.Collection, error)
- type UserRepo_CountCollections_Call
- type UserRepo_Expecter
- func (_e *UserRepo_Expecter) CountCollections(ctx interface{}, userID interface{}, subjectType interface{}, ...) *UserRepo_CountCollections_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) ListCollections(ctx interface{}, userID interface{}, subjectType interface{}, ...) *UserRepo_ListCollections_Call
- type UserRepo_GetByID_Call
- type UserRepo_GetByIDs_Call
- type UserRepo_GetByName_Call
- type UserRepo_ListCollections_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 AuthRepo type
func (*AuthRepo) EXPECT ¶
func (_m *AuthRepo) EXPECT() *AuthRepo_Expecter
type AuthRepo_Expecter ¶
type AuthRepo_Expecter struct {
// contains filtered or unexported fields
}
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
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 domain.Auth, _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
type CharacterRepo ¶
CharacterRepo is an autogenerated mock type for the CharacterRepo type
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, characterID uint32) ([]domain.PersonCharacterRelation, error)
GetPersonRelated provides a mock function with given fields: ctx, characterID
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
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{}, characterID interface{}) *CharacterRepo_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- characterID 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
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
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, characterID uint32)) *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
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
type CharacterService ¶
CharacterService is an autogenerated mock type for the CharacterService type
func (*CharacterService) EXPECT ¶
func (_m *CharacterService) EXPECT() *CharacterService_Expecter
func (*CharacterService) GetPersonRelated ¶
func (_m *CharacterService) GetPersonRelated(ctx context.Context, personID uint32) ([]model.PersonCharacterRelation, error)
GetPersonRelated provides a mock function with given fields: ctx, personID
func (*CharacterService) GetSubjectRelated ¶
func (_m *CharacterService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]model.SubjectCharacterRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
type CharacterService_Expecter ¶
type CharacterService_Expecter struct {
// contains filtered or unexported fields
}
func (*CharacterService_Expecter) Get ¶
func (_e *CharacterService_Expecter) Get(ctx interface{}, id interface{}) *CharacterService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*CharacterService_Expecter) GetPersonRelated ¶
func (_e *CharacterService_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *CharacterService_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
func (*CharacterService_Expecter) GetSubjectRelated ¶
func (_e *CharacterService_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *CharacterService_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
type CharacterService_GetPersonRelated_Call ¶
CharacterService_GetPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonRelated'
func (*CharacterService_GetPersonRelated_Call) Return ¶
func (_c *CharacterService_GetPersonRelated_Call) Return(_a0 []model.PersonCharacterRelation, _a1 error) *CharacterService_GetPersonRelated_Call
func (*CharacterService_GetPersonRelated_Call) Run ¶
func (_c *CharacterService_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *CharacterService_GetPersonRelated_Call
type CharacterService_GetSubjectRelated_Call ¶
CharacterService_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*CharacterService_GetSubjectRelated_Call) Return ¶
func (_c *CharacterService_GetSubjectRelated_Call) Return(_a0 []model.SubjectCharacterRelation, _a1 error) *CharacterService_GetSubjectRelated_Call
func (*CharacterService_GetSubjectRelated_Call) Run ¶
func (_c *CharacterService_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *CharacterService_GetSubjectRelated_Call
type CharacterService_Get_Call ¶
CharacterService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CharacterService_Get_Call) Return ¶
func (_c *CharacterService_Get_Call) Return(_a0 model.Character, _a1 error) *CharacterService_Get_Call
func (*CharacterService_Get_Call) Run ¶
func (_c *CharacterService_Get_Call) Run(run func(ctx context.Context, id uint32)) *CharacterService_Get_Call
type EpisodeRepo ¶
EpisodeRepo is an autogenerated mock type for the EpisodeRepo type
func (*EpisodeRepo) CountByType ¶
func (_m *EpisodeRepo) CountByType(ctx context.Context, subjectID uint32, epType int8) (int64, error)
CountByType provides a mock function with given fields: ctx, subjectID, epType
func (*EpisodeRepo) EXPECT ¶
func (_m *EpisodeRepo) EXPECT() *EpisodeRepo_Expecter
type EpisodeRepo_CountByType_Call ¶
EpisodeRepo_CountByType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountByType'
func (*EpisodeRepo_CountByType_Call) Return ¶
func (_c *EpisodeRepo_CountByType_Call) Return(_a0 int64, _a1 error) *EpisodeRepo_CountByType_Call
func (*EpisodeRepo_CountByType_Call) Run ¶
func (_c *EpisodeRepo_CountByType_Call) Run(run func(ctx context.Context, subjectID uint32, epType int8)) *EpisodeRepo_CountByType_Call
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)) *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{}) *EpisodeRepo_Count_Call
Count is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
func (*EpisodeRepo_Expecter) CountByType ¶
func (_e *EpisodeRepo_Expecter) CountByType(ctx interface{}, subjectID interface{}, epType interface{}) *EpisodeRepo_CountByType_Call
CountByType is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- epType int8
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{}, limit interface{}, offset interface{}) *EpisodeRepo_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- limit int
- offset int
func (*EpisodeRepo_Expecter) ListByType ¶
func (_e *EpisodeRepo_Expecter) ListByType(ctx interface{}, subjectID interface{}, epType interface{}, limit interface{}, offset interface{}) *EpisodeRepo_ListByType_Call
ListByType is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- epType int8
- limit int
- offset int
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 model.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
type EpisodeRepo_ListByType_Call ¶
EpisodeRepo_ListByType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByType'
func (*EpisodeRepo_ListByType_Call) Return ¶
func (_c *EpisodeRepo_ListByType_Call) Return(_a0 []model.Episode, _a1 error) *EpisodeRepo_ListByType_Call
func (*EpisodeRepo_ListByType_Call) Run ¶
func (_c *EpisodeRepo_ListByType_Call) Run(run func(ctx context.Context, subjectID uint32, epType int8, limit int, offset int)) *EpisodeRepo_ListByType_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 []model.Episode, _a1 error) *EpisodeRepo_List_Call
func (*EpisodeRepo_List_Call) Run ¶
func (_c *EpisodeRepo_List_Call) Run(run func(ctx context.Context, subjectID uint32, limit int, offset int)) *EpisodeRepo_List_Call
type Generic ¶
Generic is an autogenerated mock type for the Generic type
func (*Generic) EXPECT ¶
func (_m *Generic) EXPECT() *Generic_Expecter
type Generic_Expecter ¶
type Generic_Expecter struct {
// contains filtered or unexported fields
}
func (*Generic_Expecter) Get ¶
func (_e *Generic_Expecter) Get(ctx interface{}, key interface{}, value interface{}) *Generic_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
func (*Generic_Expecter) Set ¶
func (_e *Generic_Expecter) Set(ctx interface{}, key interface{}, value interface{}, ttl interface{}) *Generic_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
- ttl time.Duration
type Generic_Get_Call ¶
Generic_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Generic_Get_Call) Return ¶
func (_c *Generic_Get_Call) Return(_a0 bool, _a1 error) *Generic_Get_Call
func (*Generic_Get_Call) Run ¶
func (_c *Generic_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *Generic_Get_Call
type Generic_Set_Call ¶
Generic_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*Generic_Set_Call) Return ¶
func (_c *Generic_Set_Call) Return(_a0 error) *Generic_Set_Call
func (*Generic_Set_Call) Run ¶
func (_c *Generic_Set_Call) Run(run func(ctx context.Context, key string, value interface{}, ttl time.Duration)) *Generic_Set_Call
type IndexRepo ¶
IndexRepo is an autogenerated mock type for the IndexRepo type
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) EXPECT ¶
func (_m *IndexRepo) EXPECT() *IndexRepo_Expecter
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
type IndexRepo_Expecter ¶
type IndexRepo_Expecter struct {
// contains filtered or unexported fields
}
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) 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) 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
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
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 []domain.IndexSubject, _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
type PersonRepo ¶
PersonRepo is an autogenerated mock type for the PersonRepo type
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
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
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
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
type PersonService ¶
PersonService is an autogenerated mock type for the PersonService type
func (*PersonService) EXPECT ¶
func (_m *PersonService) EXPECT() *PersonService_Expecter
func (*PersonService) GetCharacterRelated ¶
func (_m *PersonService) GetCharacterRelated(ctx context.Context, subjectID uint32) ([]model.PersonCharacterRelation, error)
GetCharacterRelated provides a mock function with given fields: ctx, subjectID
func (*PersonService) GetSubjectRelated ¶
func (_m *PersonService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]model.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) 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_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 []model.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
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 []model.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
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
type RevisionRepo ¶
RevisionRepo is an autogenerated mock type for the RevisionRepo type
func (*RevisionRepo) CountPersonRelated ¶
CountPersonRelated provides a mock function with given fields: ctx, personID
func (*RevisionRepo) EXPECT ¶
func (_m *RevisionRepo) EXPECT() *RevisionRepo_Expecter
func (*RevisionRepo) GetPersonRelated ¶
GetPersonRelated provides a mock function with given fields: ctx, id
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
type RevisionRepo_Expecter ¶
type RevisionRepo_Expecter struct {
// contains filtered or unexported fields
}
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) 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) 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
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.Revision, _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
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.Revision, _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
type SubjectRepo ¶
SubjectRepo is an autogenerated mock type for the SubjectRepo type
func (*SubjectRepo) EXPECT ¶
func (_m *SubjectRepo) EXPECT() *SubjectRepo_Expecter
func (*SubjectRepo) GetActors ¶
func (_m *SubjectRepo) GetActors(ctx context.Context, subjectID uint32, characterIDs ...uint32) (map[uint32][]model.Person, error)
GetActors provides a mock function with given fields: ctx, subjectID, characterIDs
func (*SubjectRepo) GetByIDs ¶
func (_m *SubjectRepo) GetByIDs(ctx context.Context, ids ...uint32) (map[uint32]model.Subject, error)
GetByIDs provides a mock function with given fields: ctx, ids
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{}) *SubjectRepo_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
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{}) *SubjectRepo_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids ...uint32
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][]model.Person, _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
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)) *SubjectRepo_GetByIDs_Call
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
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
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
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)) *SubjectRepo_Get_Call
type SubjectService ¶
SubjectService is an autogenerated mock type for the SubjectService type
func (*SubjectService) EXPECT ¶
func (_m *SubjectService) EXPECT() *SubjectService_Expecter
func (*SubjectService) GetActors ¶
func (_m *SubjectService) GetActors(ctx context.Context, subjectID uint32, characterIDs ...uint32) (map[uint32][]model.Person, error)
GetActors provides a mock function with given fields: ctx, subjectID, characterIDs
func (*SubjectService) GetCharacterRelated ¶
func (_m *SubjectService) GetCharacterRelated(ctx context.Context, characterID uint32) ([]model.SubjectCharacterRelation, error)
GetCharacterRelated provides a mock function with given fields: ctx, characterID
func (*SubjectService) GetPersonRelated ¶
func (_m *SubjectService) GetPersonRelated(ctx context.Context, personID uint32) ([]model.SubjectPersonRelation, error)
GetPersonRelated provides a mock function with given fields: ctx, personID
func (*SubjectService) GetSubjectRelated ¶
func (_m *SubjectService) GetSubjectRelated(ctx context.Context, subjectID uint32) ([]model.SubjectInternalRelation, error)
GetSubjectRelated provides a mock function with given fields: ctx, subjectID
type SubjectService_Expecter ¶
type SubjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubjectService_Expecter) Get ¶
func (_e *SubjectService_Expecter) Get(ctx interface{}, id interface{}) *SubjectService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint32
func (*SubjectService_Expecter) GetActors ¶
func (_e *SubjectService_Expecter) GetActors(ctx interface{}, subjectID interface{}, characterIDs ...interface{}) *SubjectService_GetActors_Call
GetActors is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
- characterIDs ...uint32
func (*SubjectService_Expecter) GetCharacterRelated ¶
func (_e *SubjectService_Expecter) GetCharacterRelated(ctx interface{}, characterID interface{}) *SubjectService_GetCharacterRelated_Call
GetCharacterRelated is a helper method to define mock.On call
- ctx context.Context
- characterID uint32
func (*SubjectService_Expecter) GetPersonRelated ¶
func (_e *SubjectService_Expecter) GetPersonRelated(ctx interface{}, personID interface{}) *SubjectService_GetPersonRelated_Call
GetPersonRelated is a helper method to define mock.On call
- ctx context.Context
- personID uint32
func (*SubjectService_Expecter) GetSubjectRelated ¶
func (_e *SubjectService_Expecter) GetSubjectRelated(ctx interface{}, subjectID interface{}) *SubjectService_GetSubjectRelated_Call
GetSubjectRelated is a helper method to define mock.On call
- ctx context.Context
- subjectID uint32
type SubjectService_GetActors_Call ¶
SubjectService_GetActors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActors'
func (*SubjectService_GetActors_Call) Return ¶
func (_c *SubjectService_GetActors_Call) Return(_a0 map[uint32][]model.Person, _a1 error) *SubjectService_GetActors_Call
func (*SubjectService_GetActors_Call) Run ¶
func (_c *SubjectService_GetActors_Call) Run(run func(ctx context.Context, subjectID uint32, characterIDs ...uint32)) *SubjectService_GetActors_Call
type SubjectService_GetCharacterRelated_Call ¶
SubjectService_GetCharacterRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCharacterRelated'
func (*SubjectService_GetCharacterRelated_Call) Return ¶
func (_c *SubjectService_GetCharacterRelated_Call) Return(_a0 []model.SubjectCharacterRelation, _a1 error) *SubjectService_GetCharacterRelated_Call
func (*SubjectService_GetCharacterRelated_Call) Run ¶
func (_c *SubjectService_GetCharacterRelated_Call) Run(run func(ctx context.Context, characterID uint32)) *SubjectService_GetCharacterRelated_Call
type SubjectService_GetPersonRelated_Call ¶
SubjectService_GetPersonRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonRelated'
func (*SubjectService_GetPersonRelated_Call) Return ¶
func (_c *SubjectService_GetPersonRelated_Call) Return(_a0 []model.SubjectPersonRelation, _a1 error) *SubjectService_GetPersonRelated_Call
func (*SubjectService_GetPersonRelated_Call) Run ¶
func (_c *SubjectService_GetPersonRelated_Call) Run(run func(ctx context.Context, personID uint32)) *SubjectService_GetPersonRelated_Call
type SubjectService_GetSubjectRelated_Call ¶
SubjectService_GetSubjectRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectRelated'
func (*SubjectService_GetSubjectRelated_Call) Return ¶
func (_c *SubjectService_GetSubjectRelated_Call) Return(_a0 []model.SubjectInternalRelation, _a1 error) *SubjectService_GetSubjectRelated_Call
func (*SubjectService_GetSubjectRelated_Call) Run ¶
func (_c *SubjectService_GetSubjectRelated_Call) Run(run func(ctx context.Context, subjectID uint32)) *SubjectService_GetSubjectRelated_Call
type SubjectService_Get_Call ¶
SubjectService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubjectService_Get_Call) Return ¶
func (_c *SubjectService_Get_Call) Return(_a0 model.Subject, _a1 error) *SubjectService_Get_Call
func (*SubjectService_Get_Call) Run ¶
func (_c *SubjectService_Get_Call) Run(run func(ctx context.Context, id uint32)) *SubjectService_Get_Call
type UserRepo ¶
UserRepo is an autogenerated mock type for the UserRepo type
func (*UserRepo) CountCollections ¶
func (_m *UserRepo) CountCollections(ctx context.Context, userID uint32, subjectType uint8, collectionType uint8, showPrivate bool) (int64, error)
CountCollections provides a mock function with given fields: ctx, userID, subjectType, collectionType, showPrivate
func (*UserRepo) EXPECT ¶
func (_m *UserRepo) EXPECT() *UserRepo_Expecter
func (*UserRepo) ListCollections ¶
func (_m *UserRepo) ListCollections(ctx context.Context, userID uint32, subjectType uint8, collectionType uint8, showPrivate bool, limit int, offset int) ([]model.Collection, error)
ListCollections provides a mock function with given fields: ctx, userID, subjectType, collectionType, showPrivate, limit, offset
type UserRepo_CountCollections_Call ¶
UserRepo_CountCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountCollections'
func (*UserRepo_CountCollections_Call) Return ¶
func (_c *UserRepo_CountCollections_Call) Return(_a0 int64, _a1 error) *UserRepo_CountCollections_Call
func (*UserRepo_CountCollections_Call) Run ¶
func (_c *UserRepo_CountCollections_Call) Run(run func(ctx context.Context, userID uint32, subjectType uint8, collectionType uint8, showPrivate bool)) *UserRepo_CountCollections_Call
type UserRepo_Expecter ¶
type UserRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*UserRepo_Expecter) CountCollections ¶
func (_e *UserRepo_Expecter) CountCollections(ctx interface{}, userID interface{}, subjectType interface{}, collectionType interface{}, showPrivate interface{}) *UserRepo_CountCollections_Call
CountCollections is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectType uint8
- collectionType uint8
- showPrivate bool
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) ListCollections ¶
func (_e *UserRepo_Expecter) ListCollections(ctx interface{}, userID interface{}, subjectType interface{}, collectionType interface{}, showPrivate interface{}, limit interface{}, offset interface{}) *UserRepo_ListCollections_Call
ListCollections is a helper method to define mock.On call
- ctx context.Context
- userID uint32
- subjectType uint8
- collectionType uint8
- showPrivate bool
- limit int
- offset int
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 model.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
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]model.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
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 model.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
type UserRepo_ListCollections_Call ¶
UserRepo_ListCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCollections'
func (*UserRepo_ListCollections_Call) Return ¶
func (_c *UserRepo_ListCollections_Call) Return(_a0 []model.Collection, _a1 error) *UserRepo_ListCollections_Call