mocks

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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) Create

func (m *Database) Create(arg0 context.Context, arg1 string, arg2 ...any) (uint64, error)

Create mocks base method.

func (*Database) DoAtomic

func (m *Database) DoAtomic(arg0 context.Context, arg1 func(context.Context) error) error

DoAtomic mocks base method.

func (*Database) EXPECT

func (m *Database) EXPECT() *DatabaseMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Database) Get

func (m *Database) Get(arg0 context.Context, arg1 func(pgx.Row) error, arg2 string, arg3 ...any) error

Get mocks base method.

func (*Database) One

func (m *Database) One(arg0 context.Context, arg1 string, arg2 ...any) error

One mocks base method.

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.

func (*DatabaseMockRecorder) Get

func (mr *DatabaseMockRecorder) Get(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

Get indicates an expected call of Get.

func (*DatabaseMockRecorder) One

func (mr *DatabaseMockRecorder) One(arg0, arg1 any, arg2 ...any) *gomock.Call

One indicates an expected call of One.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthorization) IsAuthorized

func (m *MockAuthorization) IsAuthorized(arg0 context.Context, arg1 model.User, arg2 string) bool

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIdentification) GetUser

func (m *MockIdentification) GetUser(arg0 context.Context, arg1 *http.Request) (model.User, error)

GetUser mocks base method.

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.

func (*MockIdentificationMockRecorder) GetUser

func (mr *MockIdentificationMockRecorder) GetUser(arg0, arg1 any) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockIdentificationMockRecorder) OnError

func (mr *MockIdentificationMockRecorder) OnError(arg0, arg1, arg2 any) *gomock.Call

OnError indicates an expected call of OnError.

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) Create

func (m *MockStorage) Create(arg0 context.Context) (model.User, error)

Create mocks base method.

func (*MockStorage) Delete

func (m *MockStorage) Delete(arg0 context.Context, arg1 model.User) error

Delete mocks base method.

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.

func (*MockStorageMockRecorder) Create

func (mr *MockStorageMockRecorder) Create(arg0 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockStorageMockRecorder) Delete

func (mr *MockStorageMockRecorder) Delete(arg0, arg1 any) *gomock.Call

Delete indicates an expected call of Delete.

type Row

type Row struct {
	// contains filtered or unexported fields
}

Row is a mock of Row interface.

func NewRow

func NewRow(ctrl *gomock.Controller) *Row

NewRow creates a new mock instance.

func (*Row) EXPECT

func (m *Row) EXPECT() *RowMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Row) Scan

func (m *Row) Scan(dest ...any) error

Scan mocks base method.

type RowMockRecorder

type RowMockRecorder struct {
	// contains filtered or unexported fields
}

RowMockRecorder is the mock recorder for Row.

func (*RowMockRecorder) Scan

func (mr *RowMockRecorder) Scan(dest ...any) *gomock.Call

Scan indicates an expected call of Scan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL