mocks

package
v0.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 7 Imported by: 0

README

mocks

本目录包括所有接口的 mock 文件。

mockery 生成。

mockery 的安装见 mockery#installation

windows 用户也可以使用 Scoop 安装:

scoop install mockery

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepo

type AuthRepo struct {
	mock.Mock
}

AuthRepo is an autogenerated mock type for the AuthRepo type

func NewAuthRepo added in v0.12.18

func NewAuthRepo(t testing.TB) *AuthRepo

NewAuthRepo creates a new instance of AuthRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthRepo) EXPECT

func (_m *AuthRepo) EXPECT() *AuthRepo_Expecter

func (*AuthRepo) GetByEmail added in v0.12.4

func (_m *AuthRepo) GetByEmail(ctx context.Context, email string) (domain.Auth, []byte, error)

GetByEmail provides a mock function with given fields: ctx, email

func (*AuthRepo) GetByToken

func (_m *AuthRepo) GetByToken(ctx context.Context, token string) (domain.Auth, error)

GetByToken provides a mock function with given fields: ctx, token

func (*AuthRepo) GetPermission added in v0.12.4

func (_m *AuthRepo) GetPermission(ctx context.Context, groupID uint8) (domain.Permission, error)

GetPermission provides a mock function with given fields: ctx, groupID

type AuthRepo_Expecter

type AuthRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*AuthRepo_Expecter) GetByEmail added in v0.12.4

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 added in v0.12.4

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

type AuthRepo_GetByEmail_Call added in v0.12.4

type AuthRepo_GetByEmail_Call struct {
	*mock.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 added in v0.12.4

func (*AuthRepo_GetByEmail_Call) Run added in v0.12.4

type AuthRepo_GetByToken_Call

type AuthRepo_GetByToken_Call struct {
	*mock.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 (*AuthRepo_GetByToken_Call) Run

type AuthRepo_GetPermission_Call added in v0.12.4

type AuthRepo_GetPermission_Call struct {
	*mock.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 added in v0.12.4

func (*AuthRepo_GetPermission_Call) Run added in v0.12.4

type AuthService added in v0.12.4

type AuthService struct {
	mock.Mock
}

AuthService is an autogenerated mock type for the AuthService type

func NewAuthService added in v0.12.18

func NewAuthService(t testing.TB) *AuthService

NewAuthService creates a new instance of AuthService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthService) ComparePassword added in v0.12.4

func (_m *AuthService) ComparePassword(hashed []byte, password string) (bool, error)

ComparePassword provides a mock function with given fields: hashed, password

func (*AuthService) EXPECT added in v0.12.4

func (_m *AuthService) EXPECT() *AuthService_Expecter

func (*AuthService) GetByID added in v0.15.2

func (_m *AuthService) GetByID(ctx context.Context, userID uint32) (domain.Auth, error)

GetByID provides a mock function with given fields: ctx, userID

func (*AuthService) GetByIDWithCache added in v0.15.2

func (_m *AuthService) GetByIDWithCache(ctx context.Context, userID uint32) (domain.Auth, error)

GetByIDWithCache provides a mock function with given fields: ctx, userID

func (*AuthService) GetByToken added in v0.12.4

func (_m *AuthService) GetByToken(ctx context.Context, token string) (domain.Auth, error)

GetByToken provides a mock function with given fields: ctx, token

func (*AuthService) GetByTokenWithCache added in v0.12.9

func (_m *AuthService) GetByTokenWithCache(ctx context.Context, token string) (domain.Auth, error)

GetByTokenWithCache provides a mock function with given fields: ctx, token

func (*AuthService) GetPermission added in v0.12.8

func (_m *AuthService) GetPermission(ctx context.Context, id uint8) (domain.Permission, error)

GetPermission provides a mock function with given fields: ctx, id

func (*AuthService) Login added in v0.12.4

func (_m *AuthService) Login(ctx context.Context, email string, password string) (domain.Auth, bool, error)

Login provides a mock function with given fields: ctx, email, password

type AuthService_ComparePassword_Call added in v0.12.4

type AuthService_ComparePassword_Call struct {
	*mock.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 added in v0.12.4

func (*AuthService_ComparePassword_Call) Run added in v0.12.4

func (_c *AuthService_ComparePassword_Call) Run(run func(hashed []byte, password string)) *AuthService_ComparePassword_Call

type AuthService_Expecter added in v0.12.4

type AuthService_Expecter struct {
	// contains filtered or unexported fields
}

func (*AuthService_Expecter) ComparePassword added in v0.12.4

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) GetByID added in v0.15.2

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) GetByIDWithCache added in v0.15.2

func (_e *AuthService_Expecter) GetByIDWithCache(ctx interface{}, userID interface{}) *AuthService_GetByIDWithCache_Call

GetByIDWithCache is a helper method to define mock.On call

  • ctx context.Context
  • userID uint32

func (*AuthService_Expecter) GetByToken added in v0.12.4

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) GetByTokenWithCache added in v0.12.9

func (_e *AuthService_Expecter) GetByTokenWithCache(ctx interface{}, token interface{}) *AuthService_GetByTokenWithCache_Call

GetByTokenWithCache is a helper method to define mock.On call

  • ctx context.Context
  • token string

func (*AuthService_Expecter) GetPermission added in v0.12.8

func (_e *AuthService_Expecter) GetPermission(ctx interface{}, id interface{}) *AuthService_GetPermission_Call

GetPermission is a helper method to define mock.On call

  • ctx context.Context
  • id uint8

func (*AuthService_Expecter) Login added in v0.12.4

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_GetByIDWithCache_Call added in v0.15.2

type AuthService_GetByIDWithCache_Call struct {
	*mock.Call
}

AuthService_GetByIDWithCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDWithCache'

func (*AuthService_GetByIDWithCache_Call) Return added in v0.15.2

func (*AuthService_GetByIDWithCache_Call) Run added in v0.15.2

type AuthService_GetByID_Call added in v0.15.2

type AuthService_GetByID_Call struct {
	*mock.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 added in v0.15.2

func (*AuthService_GetByID_Call) Run added in v0.15.2

type AuthService_GetByTokenWithCache_Call added in v0.12.9

type AuthService_GetByTokenWithCache_Call struct {
	*mock.Call
}

AuthService_GetByTokenWithCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByTokenWithCache'

func (*AuthService_GetByTokenWithCache_Call) Return added in v0.12.9

func (*AuthService_GetByTokenWithCache_Call) Run added in v0.12.9

type AuthService_GetByToken_Call added in v0.12.4

type AuthService_GetByToken_Call struct {
	*mock.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 added in v0.12.4

func (*AuthService_GetByToken_Call) Run added in v0.12.4

type AuthService_GetPermission_Call added in v0.12.8

type AuthService_GetPermission_Call struct {
	*mock.Call
}

AuthService_GetPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermission'

func (*AuthService_GetPermission_Call) Return added in v0.12.8

func (*AuthService_GetPermission_Call) Run added in v0.12.8

type AuthService_Login_Call added in v0.12.4

type AuthService_Login_Call struct {
	*mock.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 added in v0.12.4

func (*AuthService_Login_Call) Run added in v0.12.4

func (_c *AuthService_Login_Call) Run(run func(ctx context.Context, email string, password string)) *AuthService_Login_Call

type CaptchaManager added in v0.12.4

type CaptchaManager struct {
	mock.Mock
}

CaptchaManager is an autogenerated mock type for the Manager type

func NewCaptchaManager added in v0.14.0

func NewCaptchaManager(t testing.TB) *CaptchaManager

NewCaptchaManager creates a new instance of CaptchaManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CaptchaManager) EXPECT added in v0.12.4

func (*CaptchaManager) Verify added in v0.12.4

func (_m *CaptchaManager) Verify(ctx context.Context, response string) (bool, error)

Verify provides a mock function with given fields: ctx, response

type CaptchaManager_Expecter added in v0.12.4

type CaptchaManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*CaptchaManager_Expecter) Verify added in v0.12.4

func (_e *CaptchaManager_Expecter) Verify(ctx interface{}, response interface{}) *CaptchaManager_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context
  • response string

type CaptchaManager_Verify_Call added in v0.12.4

type CaptchaManager_Verify_Call struct {
	*mock.Call
}

CaptchaManager_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'

func (*CaptchaManager_Verify_Call) Return added in v0.12.4

func (*CaptchaManager_Verify_Call) Run added in v0.12.4

type CharacterRepo

type CharacterRepo struct {
	mock.Mock
}

CharacterRepo is an autogenerated mock type for the CharacterRepo type

func NewCharacterRepo added in v0.12.18

func NewCharacterRepo(t testing.TB) *CharacterRepo

NewCharacterRepo creates a new instance of CharacterRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CharacterRepo) EXPECT

func (_m *CharacterRepo) EXPECT() *CharacterRepo_Expecter

func (*CharacterRepo) Get

func (_m *CharacterRepo) Get(ctx context.Context, id uint32) (model.Character, error)

Get provides a mock function with given fields: ctx, id

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

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

type CharacterRepo_GetByIDs_Call

type CharacterRepo_GetByIDs_Call struct {
	*mock.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 (*CharacterRepo_GetByIDs_Call) Run

type CharacterRepo_GetPersonRelated_Call

type CharacterRepo_GetPersonRelated_Call struct {
	*mock.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 (*CharacterRepo_GetPersonRelated_Call) Run

type CharacterRepo_GetSubjectRelated_Call

type CharacterRepo_GetSubjectRelated_Call struct {
	*mock.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 (*CharacterRepo_GetSubjectRelated_Call) Run

type CharacterRepo_Get_Call

type CharacterRepo_Get_Call struct {
	*mock.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 (*CharacterRepo_Get_Call) Run

type CharacterService

type CharacterService struct {
	mock.Mock
}

CharacterService is an autogenerated mock type for the CharacterService type

func NewCharacterService added in v0.12.18

func NewCharacterService(t testing.TB) *CharacterService

NewCharacterService creates a new instance of CharacterService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CharacterService) EXPECT

func (*CharacterService) Get

Get provides a mock function with given fields: ctx, id

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

type CharacterService_GetPersonRelated_Call struct {
	*mock.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 (*CharacterService_GetPersonRelated_Call) Run

type CharacterService_GetSubjectRelated_Call

type CharacterService_GetSubjectRelated_Call struct {
	*mock.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 (*CharacterService_GetSubjectRelated_Call) Run

type CharacterService_Get_Call

type CharacterService_Get_Call struct {
	*mock.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 (*CharacterService_Get_Call) Run

type EpisodeRepo

type EpisodeRepo struct {
	mock.Mock
}

EpisodeRepo is an autogenerated mock type for the EpisodeRepo type

func NewEpisodeRepo added in v0.12.18

func NewEpisodeRepo(t testing.TB) *EpisodeRepo

NewEpisodeRepo creates a new instance of EpisodeRepo. It also registers the testing.TB 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) (int64, error)

Count provides a mock function with given fields: ctx, subjectID

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

func (*EpisodeRepo) Get

func (_m *EpisodeRepo) Get(ctx context.Context, episodeID uint32) (model.Episode, error)

Get provides a mock function with given fields: ctx, episodeID

func (*EpisodeRepo) List

func (_m *EpisodeRepo) List(ctx context.Context, subjectID uint32, limit int, offset int) ([]model.Episode, error)

List provides a mock function with given fields: ctx, subjectID, limit, offset

func (*EpisodeRepo) ListByType

func (_m *EpisodeRepo) ListByType(ctx context.Context, subjectID uint32, epType int8, limit int, offset int) ([]model.Episode, error)

ListByType provides a mock function with given fields: ctx, subjectID, epType, limit, offset

type EpisodeRepo_CountByType_Call

type EpisodeRepo_CountByType_Call struct {
	*mock.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 (*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

type EpisodeRepo_Count_Call struct {
	*mock.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 (*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

type EpisodeRepo_Get_Call struct {
	*mock.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 (*EpisodeRepo_Get_Call) Run

func (_c *EpisodeRepo_Get_Call) Run(run func(ctx context.Context, episodeID uint32)) *EpisodeRepo_Get_Call

type EpisodeRepo_ListByType_Call

type EpisodeRepo_ListByType_Call struct {
	*mock.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 (*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

type EpisodeRepo_List_Call struct {
	*mock.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 (*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

type Generic struct {
	mock.Mock
}

Generic is an autogenerated mock type for the Generic type

func NewGeneric added in v0.12.18

func NewGeneric(t testing.TB) *Generic

NewGeneric creates a new instance of Generic. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*Generic) Del added in v0.12.4

func (_m *Generic) Del(ctx context.Context, keys ...string) error

Del provides a mock function with given fields: ctx, keys

func (*Generic) EXPECT

func (_m *Generic) EXPECT() *Generic_Expecter

func (*Generic) Get

func (_m *Generic) Get(ctx context.Context, key string, value interface{}) (bool, error)

Get provides a mock function with given fields: ctx, key, value

func (*Generic) Set

func (_m *Generic) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error

Set provides a mock function with given fields: ctx, key, value, ttl

type Generic_Del_Call added in v0.12.4

type Generic_Del_Call struct {
	*mock.Call
}

Generic_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del'

func (*Generic_Del_Call) Return added in v0.12.4

func (_c *Generic_Del_Call) Return(_a0 error) *Generic_Del_Call

func (*Generic_Del_Call) Run added in v0.12.4

func (_c *Generic_Del_Call) Run(run func(ctx context.Context, keys ...string)) *Generic_Del_Call

type Generic_Expecter

type Generic_Expecter struct {
	// contains filtered or unexported fields
}

func (*Generic_Expecter) Del added in v0.12.4

func (_e *Generic_Expecter) Del(ctx interface{}, keys ...interface{}) *Generic_Del_Call

Del is a helper method to define mock.On call

  • ctx context.Context
  • keys ...string

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

type Generic_Get_Call struct {
	*mock.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

type Generic_Set_Call struct {
	*mock.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

type IndexRepo struct {
	mock.Mock
}

IndexRepo is an autogenerated mock type for the IndexRepo type

func NewIndexRepo added in v0.12.18

func NewIndexRepo(t testing.TB) *IndexRepo

NewIndexRepo creates a new instance of IndexRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

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

func (*IndexRepo) Get

func (_m *IndexRepo) Get(ctx context.Context, id uint32) (model.Index, error)

Get provides a mock function with given fields: ctx, id

func (*IndexRepo) ListSubjects

func (_m *IndexRepo) ListSubjects(ctx context.Context, id uint32, subjectType uint8, limit int, offset int) ([]domain.IndexSubject, error)

ListSubjects provides a mock function with given fields: ctx, id, subjectType, limit, offset

type IndexRepo_CountSubjects_Call

type IndexRepo_CountSubjects_Call struct {
	*mock.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 (*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

type IndexRepo_Get_Call struct {
	*mock.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

type IndexRepo_ListSubjects_Call struct {
	*mock.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 (*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

type PersonRepo struct {
	mock.Mock
}

PersonRepo is an autogenerated mock type for the PersonRepo type

func NewPersonRepo added in v0.12.18

func NewPersonRepo(t testing.TB) *PersonRepo

NewPersonRepo creates a new instance of PersonRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*PersonRepo) EXPECT

func (_m *PersonRepo) EXPECT() *PersonRepo_Expecter

func (*PersonRepo) Get

func (_m *PersonRepo) Get(ctx context.Context, id uint32) (model.Person, error)

Get provides a mock function with given fields: ctx, id

func (*PersonRepo) GetByIDs

func (_m *PersonRepo) GetByIDs(ctx context.Context, ids ...uint32) (map[uint32]model.Person, error)

GetByIDs provides a mock function with given fields: ctx, ids

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

type PersonRepo_GetByIDs_Call struct {
	*mock.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 (*PersonRepo_GetByIDs_Call) Run

type PersonRepo_GetCharacterRelated_Call

type PersonRepo_GetCharacterRelated_Call struct {
	*mock.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 (*PersonRepo_GetCharacterRelated_Call) Run

type PersonRepo_GetSubjectRelated_Call

type PersonRepo_GetSubjectRelated_Call struct {
	*mock.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 (*PersonRepo_GetSubjectRelated_Call) Run

type PersonRepo_Get_Call

type PersonRepo_Get_Call struct {
	*mock.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 (*PersonRepo_Get_Call) Run

func (_c *PersonRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *PersonRepo_Get_Call

type PersonService

type PersonService struct {
	mock.Mock
}

PersonService is an autogenerated mock type for the PersonService type

func NewPersonService added in v0.12.18

func NewPersonService(t testing.TB) *PersonService

NewPersonService creates a new instance of PersonService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*PersonService) EXPECT

func (_m *PersonService) EXPECT() *PersonService_Expecter

func (*PersonService) Get

func (_m *PersonService) Get(ctx context.Context, id uint32) (model.Person, error)

Get provides a mock function with given fields: ctx, id

func (*PersonService) GetCharacterRelated

func (_m *PersonService) GetCharacterRelated(ctx context.Context, characterID uint32) ([]model.PersonCharacterRelation, error)

GetCharacterRelated provides a mock function with given fields: ctx, characterID

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{}, characterID interface{}) *PersonService_GetCharacterRelated_Call

GetCharacterRelated is a helper method to define mock.On call

  • ctx context.Context
  • characterID 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

type PersonService_GetCharacterRelated_Call struct {
	*mock.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 (*PersonService_GetCharacterRelated_Call) Run

type PersonService_GetSubjectRelated_Call

type PersonService_GetSubjectRelated_Call struct {
	*mock.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 (*PersonService_GetSubjectRelated_Call) Run

type PersonService_Get_Call

type PersonService_Get_Call struct {
	*mock.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 (*PersonService_Get_Call) Run

type RateLimiter added in v0.12.4

type RateLimiter struct {
	mock.Mock
}

RateLimiter is an autogenerated mock type for the Manager type

func NewRateLimiter added in v0.14.0

func NewRateLimiter(t testing.TB) *RateLimiter

NewRateLimiter creates a new instance of RateLimiter. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*RateLimiter) Allowed added in v0.12.4

func (_m *RateLimiter) Allowed(ctx context.Context, ip string) (bool, int, error)

Allowed provides a mock function with given fields: ctx, ip

func (*RateLimiter) EXPECT added in v0.12.4

func (_m *RateLimiter) EXPECT() *RateLimiter_Expecter

func (*RateLimiter) Reset added in v0.12.4

func (_m *RateLimiter) Reset(ctx context.Context, ip string) error

Reset provides a mock function with given fields: ctx, ip

type RateLimiter_Allowed_Call added in v0.12.4

type RateLimiter_Allowed_Call struct {
	*mock.Call
}

RateLimiter_Allowed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Allowed'

func (*RateLimiter_Allowed_Call) Return added in v0.12.4

func (_c *RateLimiter_Allowed_Call) Return(allowed bool, remain int, err error) *RateLimiter_Allowed_Call

func (*RateLimiter_Allowed_Call) Run added in v0.12.4

type RateLimiter_Expecter added in v0.12.4

type RateLimiter_Expecter struct {
	// contains filtered or unexported fields
}

func (*RateLimiter_Expecter) Allowed added in v0.12.4

func (_e *RateLimiter_Expecter) Allowed(ctx interface{}, ip interface{}) *RateLimiter_Allowed_Call

Allowed is a helper method to define mock.On call

  • ctx context.Context
  • ip string

func (*RateLimiter_Expecter) Reset added in v0.12.4

func (_e *RateLimiter_Expecter) Reset(ctx interface{}, ip interface{}) *RateLimiter_Reset_Call

Reset is a helper method to define mock.On call

  • ctx context.Context
  • ip string

type RateLimiter_Reset_Call added in v0.12.4

type RateLimiter_Reset_Call struct {
	*mock.Call
}

RateLimiter_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'

func (*RateLimiter_Reset_Call) Return added in v0.12.4

func (*RateLimiter_Reset_Call) Run added in v0.12.4

type RevisionRepo

type RevisionRepo struct {
	mock.Mock
}

RevisionRepo is an autogenerated mock type for the RevisionRepo type

func NewRevisionRepo added in v0.12.18

func NewRevisionRepo(t testing.TB) *RevisionRepo

NewRevisionRepo creates a new instance of RevisionRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*RevisionRepo) CountCharacterRelated added in v0.12.0

func (_m *RevisionRepo) CountCharacterRelated(ctx context.Context, characterID uint32) (int64, error)

CountCharacterRelated provides a mock function with given fields: ctx, characterID

func (*RevisionRepo) CountPersonRelated

func (_m *RevisionRepo) CountPersonRelated(ctx context.Context, personID uint32) (int64, error)

CountPersonRelated provides a mock function with given fields: ctx, personID

func (*RevisionRepo) CountSubjectRelated

func (_m *RevisionRepo) CountSubjectRelated(ctx context.Context, id uint32) (int64, error)

CountSubjectRelated provides a mock function with given fields: ctx, id

func (*RevisionRepo) EXPECT

func (_m *RevisionRepo) EXPECT() *RevisionRepo_Expecter

func (*RevisionRepo) GetCharacterRelated added in v0.12.0

func (_m *RevisionRepo) GetCharacterRelated(ctx context.Context, id uint32) (model.CharacterRevision, error)

GetCharacterRelated provides a mock function with given fields: ctx, id

func (*RevisionRepo) GetPersonRelated

func (_m *RevisionRepo) GetPersonRelated(ctx context.Context, id uint32) (model.Revision, error)

GetPersonRelated provides a mock function with given fields: ctx, id

func (*RevisionRepo) GetSubjectRelated

func (_m *RevisionRepo) GetSubjectRelated(ctx context.Context, id uint32) (model.Revision, error)

GetSubjectRelated provides a mock function with given fields: ctx, id

func (*RevisionRepo) ListCharacterRelated added in v0.12.0

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) ListPersonRelated

func (_m *RevisionRepo) ListPersonRelated(ctx context.Context, personID uint32, limit int, offset int) ([]model.Revision, 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.Revision, error)

ListSubjectRelated provides a mock function with given fields: ctx, id, limit, offset

type RevisionRepo_CountCharacterRelated_Call added in v0.12.0

type RevisionRepo_CountCharacterRelated_Call struct {
	*mock.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 added in v0.12.0

func (*RevisionRepo_CountCharacterRelated_Call) Run added in v0.12.0

type RevisionRepo_CountPersonRelated_Call

type RevisionRepo_CountPersonRelated_Call struct {
	*mock.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 (*RevisionRepo_CountPersonRelated_Call) Run

type RevisionRepo_CountSubjectRelated_Call

type RevisionRepo_CountSubjectRelated_Call struct {
	*mock.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 (*RevisionRepo_CountSubjectRelated_Call) Run

type RevisionRepo_Expecter

type RevisionRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*RevisionRepo_Expecter) CountCharacterRelated added in v0.12.0

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) 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 added in v0.12.0

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) 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 added in v0.12.0

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) 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 added in v0.12.0

type RevisionRepo_GetCharacterRelated_Call struct {
	*mock.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 added in v0.12.0

func (*RevisionRepo_GetCharacterRelated_Call) Run added in v0.12.0

type RevisionRepo_GetPersonRelated_Call

type RevisionRepo_GetPersonRelated_Call struct {
	*mock.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 (*RevisionRepo_GetPersonRelated_Call) Run

type RevisionRepo_GetSubjectRelated_Call

type RevisionRepo_GetSubjectRelated_Call struct {
	*mock.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 (*RevisionRepo_GetSubjectRelated_Call) Run

type RevisionRepo_ListCharacterRelated_Call added in v0.12.0

type RevisionRepo_ListCharacterRelated_Call struct {
	*mock.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 added in v0.12.0

func (*RevisionRepo_ListCharacterRelated_Call) Run added in v0.12.0

type RevisionRepo_ListPersonRelated_Call

type RevisionRepo_ListPersonRelated_Call struct {
	*mock.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 (*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 RevisionRepo_ListSubjectRelated_Call

type RevisionRepo_ListSubjectRelated_Call struct {
	*mock.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 (*RevisionRepo_ListSubjectRelated_Call) Run

type SessionManager added in v0.12.4

type SessionManager struct {
	mock.Mock
}

SessionManager is an autogenerated mock type for the Manager type

func NewSessionManager added in v0.12.18

func NewSessionManager(t testing.TB) *SessionManager

NewSessionManager creates a new instance of SessionManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*SessionManager) Create added in v0.12.4

Create provides a mock function with given fields: ctx, a

func (*SessionManager) EXPECT added in v0.12.4

func (*SessionManager) Get added in v0.12.4

func (_m *SessionManager) Get(ctx context.Context, key string) (session.Session, error)

Get provides a mock function with given fields: ctx, key

func (*SessionManager) Revoke added in v0.12.4

func (_m *SessionManager) Revoke(ctx context.Context, key string) error

Revoke provides a mock function with given fields: ctx, key

func (*SessionManager) RevokeUser added in v0.12.4

func (_m *SessionManager) RevokeUser(ctx context.Context, id uint32) error

RevokeUser provides a mock function with given fields: ctx, id

type SessionManager_Create_Call added in v0.12.4

type SessionManager_Create_Call struct {
	*mock.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 added in v0.12.4

func (*SessionManager_Create_Call) Run added in v0.12.4

type SessionManager_Expecter added in v0.12.4

type SessionManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*SessionManager_Expecter) Create added in v0.12.4

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 domain.Auth

func (*SessionManager_Expecter) Get added in v0.12.4

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 added in v0.12.4

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 added in v0.12.4

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 added in v0.12.4

type SessionManager_Get_Call struct {
	*mock.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 added in v0.12.4

func (*SessionManager_Get_Call) Run added in v0.12.4

type SessionManager_RevokeUser_Call added in v0.12.4

type SessionManager_RevokeUser_Call struct {
	*mock.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 added in v0.12.4

func (*SessionManager_RevokeUser_Call) Run added in v0.12.4

type SessionManager_Revoke_Call added in v0.12.4

type SessionManager_Revoke_Call struct {
	*mock.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 added in v0.12.4

func (*SessionManager_Revoke_Call) Run added in v0.12.4

type SubjectRepo

type SubjectRepo struct {
	mock.Mock
}

SubjectRepo is an autogenerated mock type for the SubjectRepo type

func NewSubjectRepo added in v0.12.18

func NewSubjectRepo(t testing.TB) *SubjectRepo

NewSubjectRepo creates a new instance of SubjectRepo. It also registers the testing.TB 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) (model.Subject, error)

Get provides a mock function with given fields: ctx, id

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

type SubjectRepo_GetActors_Call struct {
	*mock.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 (*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

type SubjectRepo_GetByIDs_Call struct {
	*mock.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 (*SubjectRepo_GetByIDs_Call) Run

type SubjectRepo_GetCharacterRelated_Call

type SubjectRepo_GetCharacterRelated_Call struct {
	*mock.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 (*SubjectRepo_GetCharacterRelated_Call) Run

type SubjectRepo_GetPersonRelated_Call

type SubjectRepo_GetPersonRelated_Call struct {
	*mock.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 (*SubjectRepo_GetPersonRelated_Call) Run

type SubjectRepo_GetSubjectRelated_Call

type SubjectRepo_GetSubjectRelated_Call struct {
	*mock.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 (*SubjectRepo_GetSubjectRelated_Call) Run

type SubjectRepo_Get_Call

type SubjectRepo_Get_Call struct {
	*mock.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 (*SubjectRepo_Get_Call) Run

func (_c *SubjectRepo_Get_Call) Run(run func(ctx context.Context, id uint32)) *SubjectRepo_Get_Call

type SubjectService

type SubjectService struct {
	mock.Mock
}

SubjectService is an autogenerated mock type for the SubjectService type

func NewSubjectService added in v0.12.18

func NewSubjectService(t testing.TB) *SubjectService

NewSubjectService creates a new instance of SubjectService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*SubjectService) EXPECT

func (*SubjectService) Get

func (_m *SubjectService) Get(ctx context.Context, id uint32) (model.Subject, error)

Get provides a mock function with given fields: ctx, id

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

type SubjectService_GetActors_Call struct {
	*mock.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 (*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

type SubjectService_GetCharacterRelated_Call struct {
	*mock.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 (*SubjectService_GetCharacterRelated_Call) Run

type SubjectService_GetPersonRelated_Call

type SubjectService_GetPersonRelated_Call struct {
	*mock.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 (*SubjectService_GetPersonRelated_Call) Run

type SubjectService_GetSubjectRelated_Call

type SubjectService_GetSubjectRelated_Call struct {
	*mock.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 (*SubjectService_GetSubjectRelated_Call) Run

type SubjectService_Get_Call

type SubjectService_Get_Call struct {
	*mock.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 (*SubjectService_Get_Call) Run

type UserRepo

type UserRepo struct {
	mock.Mock
}

UserRepo is an autogenerated mock type for the UserRepo type

func NewUserRepo added in v0.12.18

func NewUserRepo(t testing.TB) *UserRepo

NewUserRepo creates a new instance of UserRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

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) GetByID

func (_m *UserRepo) GetByID(ctx context.Context, userID uint32) (model.User, error)

GetByID provides a mock function with given fields: ctx, userID

func (*UserRepo) GetByIDs

func (_m *UserRepo) GetByIDs(ctx context.Context, ids ...uint32) (map[uint32]model.User, error)

GetByIDs provides a mock function with given fields: ctx, ids

func (*UserRepo) GetByName

func (_m *UserRepo) GetByName(ctx context.Context, username string) (model.User, error)

GetByName provides a mock function with given fields: ctx, username

func (*UserRepo) GetCollection added in v0.14.0

func (_m *UserRepo) GetCollection(ctx context.Context, userID uint32, subjectID uint32) (model.Collection, error)

GetCollection provides a mock function with given fields: ctx, userID, subjectID

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

type UserRepo_CountCollections_Call struct {
	*mock.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 (*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) GetCollection added in v0.14.0

func (_e *UserRepo_Expecter) GetCollection(ctx interface{}, userID interface{}, subjectID interface{}) *UserRepo_GetCollection_Call

GetCollection is a helper method to define mock.On call

  • ctx context.Context
  • userID uint32
  • subjectID uint32

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

type UserRepo_GetByID_Call struct {
	*mock.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 (*UserRepo_GetByID_Call) Run

func (_c *UserRepo_GetByID_Call) Run(run func(ctx context.Context, userID uint32)) *UserRepo_GetByID_Call

type UserRepo_GetByIDs_Call

type UserRepo_GetByIDs_Call struct {
	*mock.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 (*UserRepo_GetByIDs_Call) Run

func (_c *UserRepo_GetByIDs_Call) Run(run func(ctx context.Context, ids ...uint32)) *UserRepo_GetByIDs_Call

type UserRepo_GetByName_Call

type UserRepo_GetByName_Call struct {
	*mock.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 (*UserRepo_GetByName_Call) Run

func (_c *UserRepo_GetByName_Call) Run(run func(ctx context.Context, username string)) *UserRepo_GetByName_Call

type UserRepo_GetCollection_Call added in v0.14.0

type UserRepo_GetCollection_Call struct {
	*mock.Call
}

UserRepo_GetCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollection'

func (*UserRepo_GetCollection_Call) Return added in v0.14.0

func (*UserRepo_GetCollection_Call) Run added in v0.14.0

func (_c *UserRepo_GetCollection_Call) Run(run func(ctx context.Context, userID uint32, subjectID uint32)) *UserRepo_GetCollection_Call

type UserRepo_ListCollections_Call

type UserRepo_ListCollections_Call struct {
	*mock.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 (*UserRepo_ListCollections_Call) Run

func (_c *UserRepo_ListCollections_Call) Run(run func(ctx context.Context, userID uint32, subjectType uint8, collectionType uint8, showPrivate bool, limit int, offset int)) *UserRepo_ListCollections_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL