mocks

package
v0.0.0-...-2668dd0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 9 Imported by: 0

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

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

func (m *MockCacher) Del(arg0 context.Context, arg1 string) (int64, error)

Del mocks base method.

func (*MockCacher) EXPECT

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacher) GetString

func (m *MockCacher) GetString(arg0 context.Context, arg1 string) (string, error)

GetString mocks base method.

func (*MockCacher) Set

func (m *MockCacher) Set(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) error

Set mocks base method.

func (*MockCacher) SetNX

func (m *MockCacher) SetNX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) (bool, error)

SetNX mocks base method.

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

func (m *MockOauth2x) Client(arg0 context.Context, arg1 *oauth2.Token) *http.Client

Client mocks base method.

func (*MockOauth2x) EXPECT

func (m *MockOauth2x) EXPECT() *MockOauth2xMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOauth2x) Exchange

func (m *MockOauth2x) Exchange(arg0 context.Context, arg1 string) (*oauth2.Token, error)

Exchange mocks base method.

func (*MockOauth2x) GetUser

func (m *MockOauth2x) GetUser(arg0 context.Context, arg1 *oauth2.Token) (*model.User, error)

GetUser mocks base method.

func (*MockOauth2x) Refresh

func (m *MockOauth2x) Refresh(arg0 context.Context, arg1 *oauth2.Token) (*oauth2.Token, error)

Refresh mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenRepo) GetToken

func (m *MockTokenRepo) GetToken(arg0 context.Context, arg1 string, arg2 int64, arg3 repo.Refresher) (*oauth2.Token, error)

GetToken mocks base method.

func (*MockTokenRepo) SaveToken

func (m *MockTokenRepo) SaveToken(arg0 context.Context, arg1 *oauth2.Token, arg2 string, arg3 int64) error

SaveToken mocks base method.

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

func (m *MockUserRepo) Create(arg0 context.Context, arg1 *model.User) (*model.User, error)

Create mocks base method.

func (*MockUserRepo) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserRepo) Get

func (m *MockUserRepo) Get(arg0 context.Context, arg1 int64, arg2 query.Opt) (*model.User, error)

Get mocks base method.

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.

Jump to

Keyboard shortcuts

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