Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type Database
- func (m *Database) Create(arg0 context.Context, arg1 string, arg2 ...interface{}) (uint64, error)
- func (m *Database) DoAtomic(arg0 context.Context, arg1 func(context.Context) error) error
- func (m *Database) EXPECT() *DatabaseMockRecorder
- func (m *Database) Get(arg0 context.Context, arg1 func(pgx.Row) error, arg2 string, ...) error
- func (m *Database) One(arg0 context.Context, arg1 string, arg2 ...interface{}) error
- type DatabaseMockRecorder
- func (mr *DatabaseMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *DatabaseMockRecorder) DoAtomic(arg0, arg1 interface{}) *gomock.Call
- func (mr *DatabaseMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *DatabaseMockRecorder) One(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type Provider
- type ProviderMockRecorder
- type Row
- type RowMockRecorder
- type Storage
- func (m *Storage) Create(arg0 context.Context, arg1 model.User) (uint64, error)
- func (m *Storage) Delete(arg0 context.Context, arg1 model.User) error
- func (m *Storage) DoAtomic(arg0 context.Context, arg1 func(context.Context) error) error
- func (m *Storage) EXPECT() *StorageMockRecorder
- func (m *Storage) Get(arg0 context.Context, arg1 uint64) (model.User, error)
- func (m *Storage) Update(arg0 context.Context, arg1 model.User) error
- type StorageMockRecorder
- func (mr *StorageMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *StorageMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *StorageMockRecorder) DoAtomic(arg0, arg1 interface{}) *gomock.Call
- func (mr *StorageMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *StorageMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶ added in v2.11.11
type Database struct {
// contains filtered or unexported fields
}
Database is a mock of Database interface.
func NewDatabase ¶ added in v2.11.11
func NewDatabase(ctrl *gomock.Controller) *Database
NewDatabase creates a new mock instance.
func (*Database) EXPECT ¶ added in v2.11.11
func (m *Database) EXPECT() *DatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type DatabaseMockRecorder ¶ added in v2.11.11
type DatabaseMockRecorder struct {
// contains filtered or unexported fields
}
DatabaseMockRecorder is the mock recorder for Database.
func (*DatabaseMockRecorder) Create ¶ added in v2.11.11
func (mr *DatabaseMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*DatabaseMockRecorder) DoAtomic ¶ added in v2.11.11
func (mr *DatabaseMockRecorder) DoAtomic(arg0, arg1 interface{}) *gomock.Call
DoAtomic indicates an expected call of DoAtomic.
func (*DatabaseMockRecorder) Get ¶ added in v2.11.11
func (mr *DatabaseMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*DatabaseMockRecorder) One ¶ added in v2.11.17
func (mr *DatabaseMockRecorder) One(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
One indicates an expected call of One.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a mock of Provider interface.
func NewProvider ¶
func NewProvider(ctrl *gomock.Controller) *Provider
NewProvider creates a new mock instance.
func (*Provider) EXPECT ¶
func (m *Provider) EXPECT() *ProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type ProviderMockRecorder ¶
type ProviderMockRecorder struct {
// contains filtered or unexported fields
}
ProviderMockRecorder is the mock recorder for Provider.
func (*ProviderMockRecorder) IsAuthorized ¶
func (mr *ProviderMockRecorder) IsAuthorized(arg0, arg1, arg2 interface{}) *gomock.Call
IsAuthorized indicates an expected call of IsAuthorized.
type Row ¶ added in v2.11.11
type Row struct {
// contains filtered or unexported fields
}
Row is a mock of Row interface.
func NewRow ¶ added in v2.11.11
func NewRow(ctrl *gomock.Controller) *Row
NewRow creates a new mock instance.
func (*Row) EXPECT ¶ added in v2.11.11
func (m *Row) EXPECT() *RowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type RowMockRecorder ¶ added in v2.11.11
type RowMockRecorder struct {
// contains filtered or unexported fields
}
RowMockRecorder is the mock recorder for Row.
func (*RowMockRecorder) Scan ¶ added in v2.11.11
func (mr *RowMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a mock of Storage interface.
func NewStorage ¶
func NewStorage(ctrl *gomock.Controller) *Storage
NewStorage creates a new mock instance.
func (*Storage) EXPECT ¶
func (m *Storage) EXPECT() *StorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type StorageMockRecorder ¶
type StorageMockRecorder struct {
// contains filtered or unexported fields
}
StorageMockRecorder is the mock recorder for Storage.
func (*StorageMockRecorder) Create ¶
func (mr *StorageMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*StorageMockRecorder) Delete ¶
func (mr *StorageMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*StorageMockRecorder) DoAtomic ¶
func (mr *StorageMockRecorder) DoAtomic(arg0, arg1 interface{}) *gomock.Call
DoAtomic indicates an expected call of DoAtomic.
func (*StorageMockRecorder) Get ¶
func (mr *StorageMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*StorageMockRecorder) Update ¶
func (mr *StorageMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.