Documentation ¶
Overview ¶
Package mockdb is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) CreateAccount(arg0 context.Context, arg1 string) (db.Account, error)
- func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetAccountByOwner(arg0 context.Context, arg1 string) (db.Account, error)
- func (m *MockStore) GetSession(arg0 context.Context, arg1 uuid.UUID) (db.Session, error)
- func (m *MockStore) RevokeAccountSessions(arg0 context.Context, arg1 string) (pgconn.CommandTag, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetAccountByOwner(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) RevokeAccountSessions(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) CreateAccount ¶
CreateAccount mocks base method.
func (*MockStore) CreateSession ¶
func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)
CreateSession mocks base method.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) GetAccountByOwner ¶
GetAccountByOwner mocks base method.
func (*MockStore) GetSession ¶
GetSession mocks base method.
func (*MockStore) RevokeAccountSessions ¶
func (m *MockStore) RevokeAccountSessions(arg0 context.Context, arg1 string) (pgconn.CommandTag, error)
RevokeAccountSessions mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) CreateAccount ¶
func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 any) *gomock.Call
CreateAccount indicates an expected call of CreateAccount.
func (*MockStoreMockRecorder) CreateSession ¶
func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockStoreMockRecorder) GetAccountByOwner ¶
func (mr *MockStoreMockRecorder) GetAccountByOwner(arg0, arg1 any) *gomock.Call
GetAccountByOwner indicates an expected call of GetAccountByOwner.
func (*MockStoreMockRecorder) GetSession ¶
func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockStoreMockRecorder) RevokeAccountSessions ¶
func (mr *MockStoreMockRecorder) RevokeAccountSessions(arg0, arg1 any) *gomock.Call
RevokeAccountSessions indicates an expected call of RevokeAccountSessions.