Documentation
¶
Overview ¶
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.
Index ¶
- type MockCacher
- func (m *MockCacher) Delete(k, p string) *model.TechnicalError
- func (m *MockCacher) EXPECT() *MockCacherMockRecorder
- func (m *MockCacher) Get(k, p string) (string, *model.TechnicalError)
- func (m *MockCacher) Hget(k, p string) (string, *model.TechnicalError)
- func (m *MockCacher) Hset(k, p string, v interface{}) *model.TechnicalError
- func (m *MockCacher) Set(k, p string, v interface{}, d time.Duration) *model.TechnicalError
- func (m *MockCacher) Ttl(k, p string) (time.Duration, *model.TechnicalError)
- type MockCacherMockRecorder
- func (mr *MockCacherMockRecorder) Delete(k, p interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) Get(k, p interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) Hget(k, p interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) Hset(k, p, v interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) Set(k, p, v, d interface{}) *gomock.Call
- func (mr *MockCacherMockRecorder) Ttl(k, p interface{}) *gomock.Call
- type MockPooler
- func (m *MockPooler) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockPooler) BeginTx(ctx context.Context, opts pgx.TxOptions) (pgx.Tx, error)
- func (m *MockPooler) EXPECT() *MockPoolerMockRecorder
- func (m *MockPooler) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (m *MockPooler) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (m *MockPooler) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- type MockPoolerMockRecorder
- func (mr *MockPoolerMockRecorder) Begin(ctx interface{}) *gomock.Call
- func (mr *MockPoolerMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
- func (mr *MockPoolerMockRecorder) Exec(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockPoolerMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockPoolerMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
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) Delete ¶
func (m *MockCacher) Delete(k, p string) *model.TechnicalError
Delete 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) Get ¶
func (m *MockCacher) Get(k, p string) (string, *model.TechnicalError)
Get mocks base method.
func (*MockCacher) Hget ¶
func (m *MockCacher) Hget(k, p string) (string, *model.TechnicalError)
Hget mocks base method.
func (*MockCacher) Hset ¶
func (m *MockCacher) Hset(k, p string, v interface{}) *model.TechnicalError
Hset mocks base method.
func (*MockCacher) Set ¶
func (m *MockCacher) Set(k, p string, v interface{}, d time.Duration) *model.TechnicalError
Set mocks base method.
func (*MockCacher) Ttl ¶
func (m *MockCacher) Ttl(k, p string) (time.Duration, *model.TechnicalError)
Ttl mocks base method.
type MockCacherMockRecorder ¶
type MockCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockCacherMockRecorder is the mock recorder for MockCacher.
func (*MockCacherMockRecorder) Delete ¶
func (mr *MockCacherMockRecorder) Delete(k, p interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCacherMockRecorder) Get ¶
func (mr *MockCacherMockRecorder) Get(k, p interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacherMockRecorder) Hget ¶
func (mr *MockCacherMockRecorder) Hget(k, p interface{}) *gomock.Call
Hget indicates an expected call of Hget.
func (*MockCacherMockRecorder) Hset ¶
func (mr *MockCacherMockRecorder) Hset(k, p, v interface{}) *gomock.Call
Hset indicates an expected call of Hset.
func (*MockCacherMockRecorder) Set ¶
func (mr *MockCacherMockRecorder) Set(k, p, v, d interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockCacherMockRecorder) Ttl ¶
func (mr *MockCacherMockRecorder) Ttl(k, p interface{}) *gomock.Call
Ttl indicates an expected call of Ttl.
type MockPooler ¶
type MockPooler struct {
// contains filtered or unexported fields
}
MockPooler is a mock of Pooler interface.
func NewMockPooler ¶
func NewMockPooler(ctrl *gomock.Controller) *MockPooler
NewMockPooler creates a new mock instance.
func (*MockPooler) EXPECT ¶
func (m *MockPooler) EXPECT() *MockPoolerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPooler) Exec ¶
func (m *MockPooler) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
type MockPoolerMockRecorder ¶
type MockPoolerMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolerMockRecorder is the mock recorder for MockPooler.
func (*MockPoolerMockRecorder) Begin ¶
func (mr *MockPoolerMockRecorder) Begin(ctx interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockPoolerMockRecorder) BeginTx ¶
func (mr *MockPoolerMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockPoolerMockRecorder) Exec ¶
func (mr *MockPoolerMockRecorder) Exec(ctx, sql interface{}, args ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockPoolerMockRecorder) Query ¶
func (mr *MockPoolerMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockPoolerMockRecorder) QueryRow ¶
func (mr *MockPoolerMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.