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 ¶
- type MockAuth
- func (m *MockAuth) DeleteState(state string) error
- func (m *MockAuth) EXPECT() *MockAuthMockRecorder
- func (m *MockAuth) FindStateByState(state string) (*entity.AuthState, error)
- func (m *MockAuth) GetTokenByUserID(userID string) (*oauth2.Token, error)
- func (m *MockAuth) GetUserIDFromSession(sessionID string) (string, error)
- func (m *MockAuth) StoreORUpdateToken(userID string, token *oauth2.Token) error
- func (m *MockAuth) StoreSession(sessionID, userID string) error
- func (m *MockAuth) StoreState(authState *entity.AuthState) error
- type MockAuthMockRecorder
- func (mr *MockAuthMockRecorder) DeleteState(state interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) FindStateByState(state interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) GetTokenByUserID(userID interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) GetUserIDFromSession(sessionID interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) StoreORUpdateToken(userID, token interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) StoreSession(sessionID, userID interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) StoreState(authState interface{}) *gomock.Call
- type MockSession
- func (m *MockSession) ArchiveSessionsForBatch() error
- func (m *MockSession) DoInTx(ctx context.Context, f func(context.Context) (interface{}, error)) (interface{}, error)
- func (m *MockSession) EXPECT() *MockSessionMockRecorder
- func (m *MockSession) FindByID(ctx context.Context, id string) (*entity.Session, error)
- func (m *MockSession) FindByIDForUpdate(ctx context.Context, id string) (*entity.Session, error)
- func (m *MockSession) FindCreatorTokenBySessionID(arg0 context.Context, arg1 string) (*oauth2.Token, string, error)
- func (m *MockSession) StoreQueueTrack(arg0 context.Context, arg1 *entity.QueueTrackToStore) error
- func (m *MockSession) StoreSession(arg0 context.Context, arg1 *entity.Session) error
- func (m *MockSession) Update(arg0 context.Context, arg1 *entity.Session) error
- type MockSessionMockRecorder
- func (mr *MockSessionMockRecorder) ArchiveSessionsForBatch() *gomock.Call
- func (mr *MockSessionMockRecorder) DoInTx(ctx, f interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) FindByID(ctx, id interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) FindByIDForUpdate(ctx, id interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) FindCreatorTokenBySessionID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) StoreQueueTrack(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) StoreSession(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockUser
- type MockUserMockRecorder
- func (mr *MockUserMockRecorder) FindByID(id interface{}) *gomock.Call
- func (mr *MockUserMockRecorder) FindBySpotifyUserID(spotifyUserID interface{}) *gomock.Call
- func (mr *MockUserMockRecorder) Store(user interface{}) *gomock.Call
- func (mr *MockUserMockRecorder) Update(user interface{}) *gomock.Call
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 ¶
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 ¶
FindStateByState mocks base method.
func (*MockAuth) GetTokenByUserID ¶
GetTokenByUserID mocks base method.
func (*MockAuth) GetUserIDFromSession ¶
GetUserIDFromSession mocks base method.
func (*MockAuth) StoreORUpdateToken ¶
StoreORUpdateToken mocks base method.
func (*MockAuth) StoreSession ¶
StoreSession 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) FindByIDForUpdate ¶ added in v0.2.0
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 ¶
StoreSession 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) FindBySpotifyUserID ¶
FindBySpotifyUserID 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.