Documentation
¶
Overview ¶
Package mock_postgres is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) DestroySession(ctx context.Context, sessionID ccc.UUID) error
- func (m *MockDB) DestroySessionOIDC(ctx context.Context, oidcSID string) error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) InsertSession(ctx context.Context, sessionInfo *postgres.InsertSession) (ccc.UUID, error)
- func (m *MockDB) Session(ctx context.Context, sessionID ccc.UUID) (*postgres.Session, error)
- func (m *MockDB) UpdateSessionActivity(ctx context.Context, sessionID ccc.UUID) error
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) DestroySession(ctx, sessionID any) *gomock.Call
- func (mr *MockDBMockRecorder) DestroySessionOIDC(ctx, oidcSID any) *gomock.Call
- func (mr *MockDBMockRecorder) InsertSession(ctx, sessionInfo any) *gomock.Call
- func (mr *MockDBMockRecorder) Session(ctx, sessionID any) *gomock.Call
- func (mr *MockDBMockRecorder) UpdateSessionActivity(ctx, sessionID any) *gomock.Call
- type MockQueryer
- func (m *MockQueryer) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder
- func (m *MockQueryer) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
- func (m *MockQueryer) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)
- func (m *MockQueryer) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- type MockQueryerMockRecorder
- func (mr *MockQueryerMockRecorder) Begin(ctx any) *gomock.Call
- func (mr *MockQueryerMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call
- func (mr *MockQueryerMockRecorder) Query(ctx, query any, args ...any) *gomock.Call
- func (mr *MockQueryerMockRecorder) QueryRow(ctx, query any, args ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) DestroySession ¶
DestroySession mocks base method.
func (*MockDB) DestroySessionOIDC ¶
DestroySessionOIDC mocks base method.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDB) InsertSession ¶
func (m *MockDB) InsertSession(ctx context.Context, sessionInfo *postgres.InsertSession) (ccc.UUID, error)
InsertSession mocks base method.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) DestroySession ¶
func (mr *MockDBMockRecorder) DestroySession(ctx, sessionID any) *gomock.Call
DestroySession indicates an expected call of DestroySession.
func (*MockDBMockRecorder) DestroySessionOIDC ¶
func (mr *MockDBMockRecorder) DestroySessionOIDC(ctx, oidcSID any) *gomock.Call
DestroySessionOIDC indicates an expected call of DestroySessionOIDC.
func (*MockDBMockRecorder) InsertSession ¶
func (mr *MockDBMockRecorder) InsertSession(ctx, sessionInfo any) *gomock.Call
InsertSession indicates an expected call of InsertSession.
func (*MockDBMockRecorder) Session ¶
func (mr *MockDBMockRecorder) Session(ctx, sessionID any) *gomock.Call
Session indicates an expected call of Session.
func (*MockDBMockRecorder) UpdateSessionActivity ¶
func (mr *MockDBMockRecorder) UpdateSessionActivity(ctx, sessionID any) *gomock.Call
UpdateSessionActivity indicates an expected call of UpdateSessionActivity.
type MockQueryer ¶
type MockQueryer struct {
// contains filtered or unexported fields
}
MockQueryer is a mock of Queryer interface.
func NewMockQueryer ¶
func NewMockQueryer(ctrl *gomock.Controller) *MockQueryer
NewMockQueryer creates a new mock instance.
func (*MockQueryer) EXPECT ¶
func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryer) Exec ¶
func (m *MockQueryer) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
Exec mocks base method.
type MockQueryerMockRecorder ¶
type MockQueryerMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryerMockRecorder is the mock recorder for MockQueryer.
func (*MockQueryerMockRecorder) Begin ¶
func (mr *MockQueryerMockRecorder) Begin(ctx any) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockQueryerMockRecorder) Exec ¶
func (mr *MockQueryerMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.