Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCacher
- func (m *MockCacher) Del(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockCacher) EXPECT() *MockCacherMockRecorder
- func (m *MockCacher) GetString(arg0 context.Context, arg1 string) (string, error)
- func (m *MockCacher) Set(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) error
- func (m *MockCacher) SetNX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) (bool, error)
- type MockCacherMockRecorder
- func (mr *MockCacherMockRecorder) Del(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) GetString(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) Set(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockMailer
- type MockMailerMockRecorder
- type MockOauth2x
- func (m *MockOauth2x) Client(arg0 context.Context, arg1 *oauth2.Token) *http.Client
- func (m *MockOauth2x) EXPECT() *MockOauth2xMockRecorder
- func (m *MockOauth2x) Exchange(arg0 context.Context, arg1 string) (*oauth2.Token, error)
- func (m *MockOauth2x) GetUser(arg0 context.Context, arg1 *oauth2.Token) (*model.User, error)
- func (m *MockOauth2x) Refresh(arg0 context.Context, arg1 *oauth2.Token) (*oauth2.Token, error)
- type MockOauth2xMockRecorder
- func (mr *MockOauth2xMockRecorder) Client(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOauth2xMockRecorder) Exchange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOauth2xMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOauth2xMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
- type MockTokenRepo
- type MockTokenRepoMockRecorder
- type MockUserRepo
- func (m *MockUserRepo) Create(arg0 context.Context, arg1 *model.User) (*model.User, error)
- func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder
- func (m *MockUserRepo) Get(arg0 context.Context, arg1 int64, arg2 query.Opt) (*model.User, error)
- func (m *MockUserRepo) GetByEmail(arg0 context.Context, arg1 string, arg2 query.Opt) (*model.User, error)
- func (m *MockUserRepo) GetBySource(arg0 context.Context, arg1 string, arg2 int64, arg3 query.Opt) (*model.User, error)
- func (m *MockUserRepo) Update(arg0 context.Context, arg1 int64, arg2 *model.UserParam) (int64, error)
- func (m *MockUserRepo) UpdateByEmail(arg0 context.Context, arg1 string, arg2 *model.UserParam) (int64, error)
- type MockUserRepoMockRecorder
- func (mr *MockUserRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) GetByEmail(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) GetBySource(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) UpdateByEmail(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacher ¶
type MockCacher struct {
// contains filtered or unexported fields
}
MockCacher is a mock of Cacher interface.
func NewMockCacher ¶
func NewMockCacher(ctrl *gomock.Controller) *MockCacher
NewMockCacher creates a new mock instance.
func (*MockCacher) EXPECT ¶
func (m *MockCacher) EXPECT() *MockCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacherMockRecorder ¶
type MockCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockCacherMockRecorder is the mock recorder for MockCacher.
func (*MockCacherMockRecorder) Del ¶
func (mr *MockCacherMockRecorder) Del(arg0, arg1 interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockCacherMockRecorder) GetString ¶
func (mr *MockCacherMockRecorder) GetString(arg0, arg1 interface{}) *gomock.Call
GetString indicates an expected call of GetString.
func (*MockCacherMockRecorder) Set ¶
func (mr *MockCacherMockRecorder) Set(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockCacherMockRecorder) SetNX ¶
func (mr *MockCacherMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetNX indicates an expected call of SetNX.
type MockMailer ¶
type MockMailer struct {
// contains filtered or unexported fields
}
MockMailer is a mock of Mailer interface.
func NewMockMailer ¶
func NewMockMailer(ctrl *gomock.Controller) *MockMailer
NewMockMailer creates a new mock instance.
func (*MockMailer) EXPECT ¶
func (m *MockMailer) EXPECT() *MockMailerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMailer) Send ¶
func (m *MockMailer) Send(arg0, arg1, arg2 string) error
Send mocks base method.
type MockMailerMockRecorder ¶
type MockMailerMockRecorder struct {
// contains filtered or unexported fields
}
MockMailerMockRecorder is the mock recorder for MockMailer.
func (*MockMailerMockRecorder) Send ¶
func (mr *MockMailerMockRecorder) Send(arg0, arg1, arg2 interface{}) *gomock.Call
Send indicates an expected call of Send.
type MockOauth2x ¶
type MockOauth2x struct {
// contains filtered or unexported fields
}
MockOauth2x is a mock of Oauth2x interface.
func NewMockOauth2x ¶
func NewMockOauth2x(ctrl *gomock.Controller) *MockOauth2x
NewMockOauth2x creates a new mock instance.
func (*MockOauth2x) EXPECT ¶
func (m *MockOauth2x) EXPECT() *MockOauth2xMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOauth2xMockRecorder ¶
type MockOauth2xMockRecorder struct {
// contains filtered or unexported fields
}
MockOauth2xMockRecorder is the mock recorder for MockOauth2x.
func (*MockOauth2xMockRecorder) Client ¶
func (mr *MockOauth2xMockRecorder) Client(arg0, arg1 interface{}) *gomock.Call
Client indicates an expected call of Client.
func (*MockOauth2xMockRecorder) Exchange ¶
func (mr *MockOauth2xMockRecorder) Exchange(arg0, arg1 interface{}) *gomock.Call
Exchange indicates an expected call of Exchange.
func (*MockOauth2xMockRecorder) GetUser ¶
func (mr *MockOauth2xMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockOauth2xMockRecorder) Refresh ¶
func (mr *MockOauth2xMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
type MockTokenRepo ¶
type MockTokenRepo struct {
// contains filtered or unexported fields
}
MockTokenRepo is a mock of TokenRepo interface.
func NewMockTokenRepo ¶
func NewMockTokenRepo(ctrl *gomock.Controller) *MockTokenRepo
NewMockTokenRepo creates a new mock instance.
func (*MockTokenRepo) EXPECT ¶
func (m *MockTokenRepo) EXPECT() *MockTokenRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenRepoMockRecorder ¶
type MockTokenRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenRepoMockRecorder is the mock recorder for MockTokenRepo.
func (*MockTokenRepoMockRecorder) GetToken ¶
func (mr *MockTokenRepoMockRecorder) GetToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetToken indicates an expected call of GetToken.
func (*MockTokenRepoMockRecorder) SaveToken ¶
func (mr *MockTokenRepoMockRecorder) SaveToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SaveToken indicates an expected call of SaveToken.
type MockUserRepo ¶
type MockUserRepo struct {
// contains filtered or unexported fields
}
MockUserRepo is a mock of UserRepo interface.
func NewMockUserRepo ¶
func NewMockUserRepo(ctrl *gomock.Controller) *MockUserRepo
NewMockUserRepo creates a new mock instance.
func (*MockUserRepo) EXPECT ¶
func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepo) GetByEmail ¶
func (m *MockUserRepo) GetByEmail(arg0 context.Context, arg1 string, arg2 query.Opt) (*model.User, error)
GetByEmail mocks base method.
func (*MockUserRepo) GetBySource ¶
func (m *MockUserRepo) GetBySource(arg0 context.Context, arg1 string, arg2 int64, arg3 query.Opt) (*model.User, error)
GetBySource mocks base method.
func (*MockUserRepo) Update ¶
func (m *MockUserRepo) Update(arg0 context.Context, arg1 int64, arg2 *model.UserParam) (int64, error)
Update mocks base method.
func (*MockUserRepo) UpdateByEmail ¶
func (m *MockUserRepo) UpdateByEmail(arg0 context.Context, arg1 string, arg2 *model.UserParam) (int64, error)
UpdateByEmail mocks base method.
type MockUserRepoMockRecorder ¶
type MockUserRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepoMockRecorder is the mock recorder for MockUserRepo.
func (*MockUserRepoMockRecorder) Create ¶
func (mr *MockUserRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepoMockRecorder) Get ¶
func (mr *MockUserRepoMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUserRepoMockRecorder) GetByEmail ¶
func (mr *MockUserRepoMockRecorder) GetByEmail(arg0, arg1, arg2 interface{}) *gomock.Call
GetByEmail indicates an expected call of GetByEmail.
func (*MockUserRepoMockRecorder) GetBySource ¶
func (mr *MockUserRepoMockRecorder) GetBySource(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetBySource indicates an expected call of GetBySource.
func (*MockUserRepoMockRecorder) Update ¶
func (mr *MockUserRepoMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUserRepoMockRecorder) UpdateByEmail ¶
func (mr *MockUserRepoMockRecorder) UpdateByEmail(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateByEmail indicates an expected call of UpdateByEmail.