Documentation
¶
Overview ¶
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 ...any) (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, arg3 ...any) error
- func (m *Database) One(arg0 context.Context, arg1 string, arg2 ...any) error
- type DatabaseMockRecorder
- func (mr *DatabaseMockRecorder) Create(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *DatabaseMockRecorder) DoAtomic(arg0, arg1 any) *gomock.Call
- func (mr *DatabaseMockRecorder) Get(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
- func (mr *DatabaseMockRecorder) One(arg0, arg1 any, arg2 ...any) *gomock.Call
- type MockAuthorization
- type MockAuthorizationMockRecorder
- type MockIdentification
- type MockIdentificationMockRecorder
- type MockStorage
- type MockStorageMockRecorder
- type Row
- type RowMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is a mock of Database interface.
func NewDatabase ¶
func NewDatabase(ctrl *gomock.Controller) *Database
NewDatabase creates a new mock instance.
func (*Database) EXPECT ¶
func (m *Database) EXPECT() *DatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type DatabaseMockRecorder ¶
type DatabaseMockRecorder struct {
// contains filtered or unexported fields
}
DatabaseMockRecorder is the mock recorder for Database.
func (*DatabaseMockRecorder) Create ¶
func (mr *DatabaseMockRecorder) Create(arg0, arg1 any, arg2 ...any) *gomock.Call
Create indicates an expected call of Create.
func (*DatabaseMockRecorder) DoAtomic ¶
func (mr *DatabaseMockRecorder) DoAtomic(arg0, arg1 any) *gomock.Call
DoAtomic indicates an expected call of DoAtomic.
type MockAuthorization ¶
type MockAuthorization struct {
// contains filtered or unexported fields
}
MockAuthorization is a mock of Authorization interface.
func NewMockAuthorization ¶
func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization
NewMockAuthorization creates a new mock instance.
func (*MockAuthorization) EXPECT ¶
func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorization) IsAuthorized ¶
IsAuthorized mocks base method.
func (*MockAuthorization) OnForbidden ¶
func (m *MockAuthorization) OnForbidden(arg0 http.ResponseWriter, arg1 *http.Request, arg2 model.User, arg3 string)
OnForbidden mocks base method.
type MockAuthorizationMockRecorder ¶
type MockAuthorizationMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.
func (*MockAuthorizationMockRecorder) IsAuthorized ¶
func (mr *MockAuthorizationMockRecorder) IsAuthorized(arg0, arg1, arg2 any) *gomock.Call
IsAuthorized indicates an expected call of IsAuthorized.
func (*MockAuthorizationMockRecorder) OnForbidden ¶
func (mr *MockAuthorizationMockRecorder) OnForbidden(arg0, arg1, arg2, arg3 any) *gomock.Call
OnForbidden indicates an expected call of OnForbidden.
type MockIdentification ¶
type MockIdentification struct {
// contains filtered or unexported fields
}
MockIdentification is a mock of Identification interface.
func NewMockIdentification ¶
func NewMockIdentification(ctrl *gomock.Controller) *MockIdentification
NewMockIdentification creates a new mock instance.
func (*MockIdentification) EXPECT ¶
func (m *MockIdentification) EXPECT() *MockIdentificationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIdentification) OnError ¶
func (m *MockIdentification) OnError(arg0 http.ResponseWriter, arg1 *http.Request, arg2 error)
OnError mocks base method.
type MockIdentificationMockRecorder ¶
type MockIdentificationMockRecorder struct {
// contains filtered or unexported fields
}
MockIdentificationMockRecorder is the mock recorder for MockIdentification.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row is a mock of Row interface.
func (*Row) EXPECT ¶
func (m *Row) EXPECT() *RowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type RowMockRecorder ¶
type RowMockRecorder struct {
// contains filtered or unexported fields
}
RowMockRecorder is the mock recorder for Row.