mocks

package
v4.76.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 8 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.

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 AMQPConnection added in v4.23.0

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

AMQPConnection is a mock of Connection interface.

func NewAMQPConnection added in v4.23.0

func NewAMQPConnection(ctrl *gomock.Controller) *AMQPConnection

NewAMQPConnection creates a new mock instance.

func (*AMQPConnection) Channel added in v4.29.5

func (m *AMQPConnection) Channel() (*amqp091.Channel, error)

Channel mocks base method.

func (*AMQPConnection) Close added in v4.23.0

func (m *AMQPConnection) Close() error

Close mocks base method.

func (*AMQPConnection) EXPECT added in v4.23.0

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

func (*AMQPConnection) IsClosed added in v4.23.0

func (m *AMQPConnection) IsClosed() bool

IsClosed mocks base method.

type AMQPConnectionMockRecorder added in v4.23.0

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

AMQPConnectionMockRecorder is the mock recorder for AMQPConnection.

func (*AMQPConnectionMockRecorder) Channel added in v4.29.5

func (mr *AMQPConnectionMockRecorder) Channel() *gomock.Call

Channel indicates an expected call of Channel.

func (*AMQPConnectionMockRecorder) Close added in v4.23.0

func (mr *AMQPConnectionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*AMQPConnectionMockRecorder) IsClosed added in v4.23.0

func (mr *AMQPConnectionMockRecorder) IsClosed() *gomock.Call

IsClosed indicates an expected call of IsClosed.

type Database added in v4.24.0

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

Database is a mock of Database interface.

func NewDatabase added in v4.24.0

func NewDatabase(ctrl *gomock.Controller) *Database

NewDatabase creates a new mock instance.

func (*Database) Begin added in v4.24.0

func (m *Database) Begin(arg0 context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*Database) Close added in v4.24.0

func (m *Database) Close()

Close mocks base method.

func (*Database) EXPECT added in v4.24.0

func (m *Database) EXPECT() *DatabaseMockRecorder

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

func (*Database) Exec added in v4.60.1

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

Exec mocks base method.

func (*Database) Ping added in v4.24.0

func (m *Database) Ping(arg0 context.Context) error

Ping mocks base method.

func (*Database) Query added in v4.24.0

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

Query mocks base method.

func (*Database) QueryRow added in v4.24.0

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

QueryRow mocks base method.

type DatabaseMockRecorder added in v4.24.0

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

DatabaseMockRecorder is the mock recorder for Database.

func (*DatabaseMockRecorder) Begin added in v4.24.0

func (mr *DatabaseMockRecorder) Begin(arg0 any) *gomock.Call

Begin indicates an expected call of Begin.

func (*DatabaseMockRecorder) Close added in v4.24.0

func (mr *DatabaseMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*DatabaseMockRecorder) Exec added in v4.60.1

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

Exec indicates an expected call of Exec.

func (*DatabaseMockRecorder) Ping added in v4.24.0

func (mr *DatabaseMockRecorder) Ping(arg0 any) *gomock.Call

Ping indicates an expected call of Ping.

func (*DatabaseMockRecorder) Query added in v4.24.0

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

Query indicates an expected call of Query.

func (*DatabaseMockRecorder) QueryRow added in v4.24.0

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

QueryRow indicates an expected call of QueryRow.

type ReadCloser added in v4.22.3

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

ReadCloser is a mock of ReadCloser interface.

func NewReadCloser added in v4.22.3

func NewReadCloser(ctrl *gomock.Controller) *ReadCloser

NewReadCloser creates a new mock instance.

func (*ReadCloser) Close added in v4.22.3

func (m *ReadCloser) Close() error

Close mocks base method.

func (*ReadCloser) EXPECT added in v4.22.3

func (m *ReadCloser) EXPECT() *ReadCloserMockRecorder

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

func (*ReadCloser) Read added in v4.22.3

func (m *ReadCloser) Read(arg0 []byte) (int, error)

Read mocks base method.

type ReadCloserMockRecorder added in v4.22.3

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

ReadCloserMockRecorder is the mock recorder for ReadCloser.

func (*ReadCloserMockRecorder) Close added in v4.22.3

func (mr *ReadCloserMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*ReadCloserMockRecorder) Read added in v4.22.3

func (mr *ReadCloserMockRecorder) Read(arg0 any) *gomock.Call

Read indicates an expected call of Read.

type RedisClient added in v4.28.0

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

RedisClient is a mock of RedisClient interface.

func NewRedisClient added in v4.28.0

func NewRedisClient(ctrl *gomock.Controller) *RedisClient

NewRedisClient creates a new mock instance.

func (*RedisClient) Delete added in v4.28.0

func (m *RedisClient) Delete(ctx context.Context, keys ...string) error

Delete mocks base method.

func (*RedisClient) EXPECT added in v4.28.0

func (m *RedisClient) EXPECT() *RedisClientMockRecorder

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

func (*RedisClient) Enabled added in v4.50.1

func (m *RedisClient) Enabled() bool

Enabled mocks base method.

func (*RedisClient) Expire added in v4.52.6

func (m *RedisClient) Expire(ctx context.Context, ttl time.Duration, keys ...string) error

Expire mocks base method.

func (*RedisClient) Load added in v4.28.0

func (m *RedisClient) Load(ctx context.Context, key string) ([]byte, error)

Load mocks base method.

func (*RedisClient) LoadMany added in v4.47.0

func (m *RedisClient) LoadMany(ctx context.Context, keys ...string) ([]string, error)

LoadMany mocks base method.

func (*RedisClient) Pipeline added in v4.53.4

func (m *RedisClient) Pipeline() redis.Pipeliner

Pipeline mocks base method.

func (*RedisClient) PublishJSON added in v4.66.0

func (m *RedisClient) PublishJSON(ctx context.Context, channel string, value any) error

PublishJSON mocks base method.

func (*RedisClient) Store added in v4.28.0

func (m *RedisClient) Store(ctx context.Context, key string, value any, ttl time.Duration) error

Store mocks base method.

func (*RedisClient) StoreMany added in v4.65.0

func (m *RedisClient) StoreMany(ctx context.Context, values map[string]any, ttl time.Duration) error

StoreMany mocks base method.

func (*RedisClient) Subscribe added in v4.66.0

func (m *RedisClient) Subscribe(ctx context.Context, channel string) (<-chan *redis.Message, func(context.Context))

Subscribe mocks base method.

type RedisClientMockRecorder added in v4.28.0

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

RedisClientMockRecorder is the mock recorder for RedisClient.

func (*RedisClientMockRecorder) Delete added in v4.28.0

func (mr *RedisClientMockRecorder) Delete(ctx any, keys ...any) *gomock.Call

Delete indicates an expected call of Delete.

func (*RedisClientMockRecorder) Enabled added in v4.50.1

func (mr *RedisClientMockRecorder) Enabled() *gomock.Call

Enabled indicates an expected call of Enabled.

func (*RedisClientMockRecorder) Expire added in v4.52.6

func (mr *RedisClientMockRecorder) Expire(ctx, ttl any, keys ...any) *gomock.Call

Expire indicates an expected call of Expire.

func (*RedisClientMockRecorder) Load added in v4.28.0

func (mr *RedisClientMockRecorder) Load(ctx, key any) *gomock.Call

Load indicates an expected call of Load.

func (*RedisClientMockRecorder) LoadMany added in v4.47.0

func (mr *RedisClientMockRecorder) LoadMany(ctx any, keys ...any) *gomock.Call

LoadMany indicates an expected call of LoadMany.

func (*RedisClientMockRecorder) Pipeline added in v4.53.4

func (mr *RedisClientMockRecorder) Pipeline() *gomock.Call

Pipeline indicates an expected call of Pipeline.

func (*RedisClientMockRecorder) PublishJSON added in v4.66.0

func (mr *RedisClientMockRecorder) PublishJSON(ctx, channel, value any) *gomock.Call

PublishJSON indicates an expected call of PublishJSON.

func (*RedisClientMockRecorder) Store added in v4.28.0

func (mr *RedisClientMockRecorder) Store(ctx, key, value, ttl any) *gomock.Call

Store indicates an expected call of Store.

func (*RedisClientMockRecorder) StoreMany added in v4.65.0

func (mr *RedisClientMockRecorder) StoreMany(ctx, values, ttl any) *gomock.Call

StoreMany indicates an expected call of StoreMany.

func (*RedisClientMockRecorder) Subscribe added in v4.66.0

func (mr *RedisClientMockRecorder) Subscribe(ctx, channel any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type Row added in v4.24.0

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

Row is a mock of Row interface.

func NewRow added in v4.24.0

func NewRow(ctrl *gomock.Controller) *Row

NewRow creates a new mock instance.

func (*Row) EXPECT added in v4.24.0

func (m *Row) EXPECT() *RowMockRecorder

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

func (*Row) Scan added in v4.24.0

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

Scan mocks base method.

type RowMockRecorder added in v4.24.0

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

RowMockRecorder is the mock recorder for Row.

func (*RowMockRecorder) Scan added in v4.24.0

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

Scan indicates an expected call of Scan.

type Rows added in v4.24.0

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

Rows is a mock of Rows interface.

func NewRows added in v4.24.0

func NewRows(ctrl *gomock.Controller) *Rows

NewRows creates a new mock instance.

func (*Rows) Close added in v4.24.0

func (m *Rows) Close()

Close mocks base method.

func (*Rows) CommandTag added in v4.24.0

func (m *Rows) CommandTag() pgconn.CommandTag

CommandTag mocks base method.

func (*Rows) Conn added in v4.53.5

func (m *Rows) Conn() *pgx.Conn

Conn mocks base method.

func (*Rows) EXPECT added in v4.24.0

func (m *Rows) EXPECT() *RowsMockRecorder

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

func (*Rows) Err added in v4.24.0

func (m *Rows) Err() error

Err mocks base method.

func (*Rows) FieldDescriptions added in v4.24.0

func (m *Rows) FieldDescriptions() []pgconn.FieldDescription

FieldDescriptions mocks base method.

func (*Rows) Next added in v4.24.0

func (m *Rows) Next() bool

Next mocks base method.

func (*Rows) RawValues added in v4.24.0

func (m *Rows) RawValues() [][]byte

RawValues mocks base method.

func (*Rows) Scan added in v4.24.0

func (m *Rows) Scan(arg0 ...any) error

Scan mocks base method.

func (*Rows) Values added in v4.24.0

func (m *Rows) Values() ([]any, error)

Values mocks base method.

type RowsMockRecorder added in v4.24.0

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

RowsMockRecorder is the mock recorder for Rows.

func (*RowsMockRecorder) Close added in v4.24.0

func (mr *RowsMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*RowsMockRecorder) CommandTag added in v4.24.0

func (mr *RowsMockRecorder) CommandTag() *gomock.Call

CommandTag indicates an expected call of CommandTag.

func (*RowsMockRecorder) Conn added in v4.53.5

func (mr *RowsMockRecorder) Conn() *gomock.Call

Conn indicates an expected call of Conn.

func (*RowsMockRecorder) Err added in v4.24.0

func (mr *RowsMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*RowsMockRecorder) FieldDescriptions added in v4.24.0

func (mr *RowsMockRecorder) FieldDescriptions() *gomock.Call

FieldDescriptions indicates an expected call of FieldDescriptions.

func (*RowsMockRecorder) Next added in v4.24.0

func (mr *RowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*RowsMockRecorder) RawValues added in v4.24.0

func (mr *RowsMockRecorder) RawValues() *gomock.Call

RawValues indicates an expected call of RawValues.

func (*RowsMockRecorder) Scan added in v4.24.0

func (mr *RowsMockRecorder) Scan(arg0 ...any) *gomock.Call

Scan indicates an expected call of Scan.

func (*RowsMockRecorder) Values added in v4.24.0

func (mr *RowsMockRecorder) Values() *gomock.Call

Values indicates an expected call of Values.

type Semaphore added in v4.29.5

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

Semaphore is a mock of Semaphore interface.

func NewSemaphore added in v4.29.5

func NewSemaphore(ctrl *gomock.Controller) *Semaphore

NewSemaphore creates a new mock instance.

func (*Semaphore) EXPECT added in v4.29.5

func (m *Semaphore) EXPECT() *SemaphoreMockRecorder

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

func (*Semaphore) Exclusive added in v4.29.5

func (m *Semaphore) Exclusive(arg0 context.Context, arg1 string, arg2 time.Duration, arg3 func(context.Context) error) (bool, error)

Exclusive mocks base method.

type SemaphoreMockRecorder added in v4.29.5

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

SemaphoreMockRecorder is the mock recorder for Semaphore.

func (*SemaphoreMockRecorder) Exclusive added in v4.29.5

func (mr *SemaphoreMockRecorder) Exclusive(arg0, arg1, arg2, arg3 any) *gomock.Call

Exclusive indicates an expected call of Exclusive.

type Tx added in v4.24.0

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

Tx is a mock of Tx interface.

func NewTx added in v4.24.0

func NewTx(ctrl *gomock.Controller) *Tx

NewTx creates a new mock instance.

func (*Tx) Begin added in v4.24.0

func (m *Tx) Begin(arg0 context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*Tx) Commit added in v4.24.0

func (m *Tx) Commit(arg0 context.Context) error

Commit mocks base method.

func (*Tx) Conn added in v4.24.0

func (m *Tx) Conn() *pgx.Conn

Conn mocks base method.

func (*Tx) CopyFrom added in v4.24.0

func (m *Tx) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, arg3 pgx.CopyFromSource) (int64, error)

CopyFrom mocks base method.

func (*Tx) EXPECT added in v4.24.0

func (m *Tx) EXPECT() *TxMockRecorder

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

func (*Tx) Exec added in v4.24.0

func (m *Tx) Exec(arg0 context.Context, arg1 string, arg2 ...any) (pgconn.CommandTag, error)

Exec mocks base method.

func (*Tx) LargeObjects added in v4.24.0

func (m *Tx) LargeObjects() pgx.LargeObjects

LargeObjects mocks base method.

func (*Tx) Prepare added in v4.24.0

func (m *Tx) Prepare(arg0 context.Context, arg1, arg2 string) (*pgconn.StatementDescription, error)

Prepare mocks base method.

func (*Tx) Query added in v4.24.0

func (m *Tx) Query(arg0 context.Context, arg1 string, arg2 ...any) (pgx.Rows, error)

Query mocks base method.

func (*Tx) QueryRow added in v4.24.0

func (m *Tx) QueryRow(arg0 context.Context, arg1 string, arg2 ...any) pgx.Row

QueryRow mocks base method.

func (*Tx) Rollback added in v4.24.0

func (m *Tx) Rollback(arg0 context.Context) error

Rollback mocks base method.

func (*Tx) SendBatch added in v4.24.0

func (m *Tx) SendBatch(arg0 context.Context, arg1 *pgx.Batch) pgx.BatchResults

SendBatch mocks base method.

type TxMockRecorder added in v4.24.0

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

TxMockRecorder is the mock recorder for Tx.

func (*TxMockRecorder) Begin added in v4.24.0

func (mr *TxMockRecorder) Begin(arg0 any) *gomock.Call

Begin indicates an expected call of Begin.

func (*TxMockRecorder) Commit added in v4.24.0

func (mr *TxMockRecorder) Commit(arg0 any) *gomock.Call

Commit indicates an expected call of Commit.

func (*TxMockRecorder) Conn added in v4.24.0

func (mr *TxMockRecorder) Conn() *gomock.Call

Conn indicates an expected call of Conn.

func (*TxMockRecorder) CopyFrom added in v4.24.0

func (mr *TxMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 any) *gomock.Call

CopyFrom indicates an expected call of CopyFrom.

func (*TxMockRecorder) Exec added in v4.24.0

func (mr *TxMockRecorder) Exec(arg0, arg1 any, arg2 ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*TxMockRecorder) LargeObjects added in v4.24.0

func (mr *TxMockRecorder) LargeObjects() *gomock.Call

LargeObjects indicates an expected call of LargeObjects.

func (*TxMockRecorder) Prepare added in v4.24.0

func (mr *TxMockRecorder) Prepare(arg0, arg1, arg2 any) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*TxMockRecorder) Query added in v4.24.0

func (mr *TxMockRecorder) Query(arg0, arg1 any, arg2 ...any) *gomock.Call

Query indicates an expected call of Query.

func (*TxMockRecorder) QueryRow added in v4.24.0

func (mr *TxMockRecorder) QueryRow(arg0, arg1 any, arg2 ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*TxMockRecorder) Rollback added in v4.24.0

func (mr *TxMockRecorder) Rollback(arg0 any) *gomock.Call

Rollback indicates an expected call of Rollback.

func (*TxMockRecorder) SendBatch added in v4.24.0

func (mr *TxMockRecorder) SendBatch(arg0, arg1 any) *gomock.Call

SendBatch indicates an expected call of SendBatch.

Jump to

Keyboard shortcuts

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