mock_repository

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuth

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

MockAuth is a mock of Auth interface.

func NewMockAuth

func NewMockAuth(ctrl *gomock.Controller) *MockAuth

NewMockAuth creates a new mock instance.

func (*MockAuth) DeleteState

func (m *MockAuth) DeleteState(state string) error

DeleteState mocks base method.

func (*MockAuth) EXPECT

func (m *MockAuth) EXPECT() *MockAuthMockRecorder

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

func (*MockAuth) FindStateByState

func (m *MockAuth) FindStateByState(state string) (*entity.AuthState, error)

FindStateByState mocks base method.

func (*MockAuth) GetTokenByUserID

func (m *MockAuth) GetTokenByUserID(userID string) (*oauth2.Token, error)

GetTokenByUserID mocks base method.

func (*MockAuth) GetUserIDFromSession

func (m *MockAuth) GetUserIDFromSession(sessionID string) (string, error)

GetUserIDFromSession mocks base method.

func (*MockAuth) StoreORUpdateToken

func (m *MockAuth) StoreORUpdateToken(userID string, token *oauth2.Token) error

StoreORUpdateToken mocks base method.

func (*MockAuth) StoreSession

func (m *MockAuth) StoreSession(sessionID, userID string) error

StoreSession mocks base method.

func (*MockAuth) StoreState

func (m *MockAuth) StoreState(authState *entity.AuthState) error

StoreState mocks base method.

type MockAuthMockRecorder

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

MockAuthMockRecorder is the mock recorder for MockAuth.

func (*MockAuthMockRecorder) DeleteState

func (mr *MockAuthMockRecorder) DeleteState(state interface{}) *gomock.Call

DeleteState indicates an expected call of DeleteState.

func (*MockAuthMockRecorder) FindStateByState

func (mr *MockAuthMockRecorder) FindStateByState(state interface{}) *gomock.Call

FindStateByState indicates an expected call of FindStateByState.

func (*MockAuthMockRecorder) GetTokenByUserID

func (mr *MockAuthMockRecorder) GetTokenByUserID(userID interface{}) *gomock.Call

GetTokenByUserID indicates an expected call of GetTokenByUserID.

func (*MockAuthMockRecorder) GetUserIDFromSession

func (mr *MockAuthMockRecorder) GetUserIDFromSession(sessionID interface{}) *gomock.Call

GetUserIDFromSession indicates an expected call of GetUserIDFromSession.

func (*MockAuthMockRecorder) StoreORUpdateToken

func (mr *MockAuthMockRecorder) StoreORUpdateToken(userID, token interface{}) *gomock.Call

StoreORUpdateToken indicates an expected call of StoreORUpdateToken.

func (*MockAuthMockRecorder) StoreSession

func (mr *MockAuthMockRecorder) StoreSession(sessionID, userID interface{}) *gomock.Call

StoreSession indicates an expected call of StoreSession.

func (*MockAuthMockRecorder) StoreState

func (mr *MockAuthMockRecorder) StoreState(authState interface{}) *gomock.Call

StoreState indicates an expected call of StoreState.

type MockSession

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

MockSession is a mock of Session interface.

func NewMockSession

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance.

func (*MockSession) ArchiveSessionsForBatch

func (m *MockSession) ArchiveSessionsForBatch() error

ArchiveSessionsForBatch mocks base method.

func (*MockSession) DoInTx added in v0.2.0

func (m *MockSession) DoInTx(ctx context.Context, f func(context.Context) (interface{}, error)) (interface{}, error)

DoInTx mocks base method.

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

func (*MockSession) FindByID

func (m *MockSession) FindByID(ctx context.Context, id string) (*entity.Session, error)

FindByID mocks base method.

func (*MockSession) FindByIDForUpdate added in v0.2.0

func (m *MockSession) FindByIDForUpdate(ctx context.Context, id string) (*entity.Session, error)

FindByIDForUpdate mocks base method.

func (*MockSession) FindCreatorTokenBySessionID

func (m *MockSession) FindCreatorTokenBySessionID(arg0 context.Context, arg1 string) (*oauth2.Token, string, error)

FindCreatorTokenBySessionID mocks base method.

func (*MockSession) StoreQueueTrack

func (m *MockSession) StoreQueueTrack(arg0 context.Context, arg1 *entity.QueueTrackToStore) error

StoreQueueTrack mocks base method.

func (*MockSession) StoreSession

func (m *MockSession) StoreSession(arg0 context.Context, arg1 *entity.Session) error

StoreSession mocks base method.

func (*MockSession) Update

func (m *MockSession) Update(arg0 context.Context, arg1 *entity.Session) error

Update mocks base method.

type MockSessionMockRecorder

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

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) ArchiveSessionsForBatch

func (mr *MockSessionMockRecorder) ArchiveSessionsForBatch() *gomock.Call

ArchiveSessionsForBatch indicates an expected call of ArchiveSessionsForBatch.

func (*MockSessionMockRecorder) DoInTx added in v0.2.0

func (mr *MockSessionMockRecorder) DoInTx(ctx, f interface{}) *gomock.Call

DoInTx indicates an expected call of DoInTx.

func (*MockSessionMockRecorder) FindByID

func (mr *MockSessionMockRecorder) FindByID(ctx, id interface{}) *gomock.Call

FindByID indicates an expected call of FindByID.

func (*MockSessionMockRecorder) FindByIDForUpdate added in v0.2.0

func (mr *MockSessionMockRecorder) FindByIDForUpdate(ctx, id interface{}) *gomock.Call

FindByIDForUpdate indicates an expected call of FindByIDForUpdate.

func (*MockSessionMockRecorder) FindCreatorTokenBySessionID

func (mr *MockSessionMockRecorder) FindCreatorTokenBySessionID(arg0, arg1 interface{}) *gomock.Call

FindCreatorTokenBySessionID indicates an expected call of FindCreatorTokenBySessionID.

func (*MockSessionMockRecorder) StoreQueueTrack

func (mr *MockSessionMockRecorder) StoreQueueTrack(arg0, arg1 interface{}) *gomock.Call

StoreQueueTrack indicates an expected call of StoreQueueTrack.

func (*MockSessionMockRecorder) StoreSession

func (mr *MockSessionMockRecorder) StoreSession(arg0, arg1 interface{}) *gomock.Call

StoreSession indicates an expected call of StoreSession.

func (*MockSessionMockRecorder) Update

func (mr *MockSessionMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockUser

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

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) FindByID

func (m *MockUser) FindByID(id string) (*entity.User, error)

FindByID mocks base method.

func (*MockUser) FindBySpotifyUserID

func (m *MockUser) FindBySpotifyUserID(spotifyUserID string) (*entity.User, error)

FindBySpotifyUserID mocks base method.

func (*MockUser) Store

func (m *MockUser) Store(user *entity.User) error

Store mocks base method.

func (*MockUser) Update

func (m *MockUser) Update(user *entity.User) error

Update mocks base method.

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) FindByID

func (mr *MockUserMockRecorder) FindByID(id interface{}) *gomock.Call

FindByID indicates an expected call of FindByID.

func (*MockUserMockRecorder) FindBySpotifyUserID

func (mr *MockUserMockRecorder) FindBySpotifyUserID(spotifyUserID interface{}) *gomock.Call

FindBySpotifyUserID indicates an expected call of FindBySpotifyUserID.

func (*MockUserMockRecorder) Store

func (mr *MockUserMockRecorder) Store(user interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockUserMockRecorder) Update

func (mr *MockUserMockRecorder) Update(user interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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