mocks

package
v4.53.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 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() (*amqp.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) 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 interface{}) *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) Ping added in v4.24.0

func (mr *DatabaseMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*DatabaseMockRecorder) Query added in v4.24.0

func (mr *DatabaseMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*DatabaseMockRecorder) QueryRow added in v4.24.0

func (mr *DatabaseMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *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 interface{}) *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) 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.

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 interface{}, keys ...interface{}) *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 interface{}, keys ...interface{}) *gomock.Call

Expire indicates an expected call of Expire.

func (*RedisClientMockRecorder) Load added in v4.28.0

func (mr *RedisClientMockRecorder) Load(ctx, key interface{}) *gomock.Call

Load indicates an expected call of Load.

func (*RedisClientMockRecorder) LoadMany added in v4.47.0

func (mr *RedisClientMockRecorder) LoadMany(ctx interface{}, keys ...interface{}) *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) Store added in v4.28.0

func (mr *RedisClientMockRecorder) Store(ctx, key, value, ttl interface{}) *gomock.Call

Store indicates an expected call of Store.

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 ...interface{}) 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 ...interface{}) *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 ...interface{}) error

Scan mocks base method.

func (*Rows) Values added in v4.24.0

func (m *Rows) Values() ([]interface{}, 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 ...interface{}) *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 interface{}) *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 ...interface{}) (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 ...interface{}) (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 ...interface{}) 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 interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*TxMockRecorder) Commit added in v4.24.0

func (mr *TxMockRecorder) Commit(arg0 interface{}) *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 interface{}) *gomock.Call

CopyFrom indicates an expected call of CopyFrom.

func (*TxMockRecorder) Exec added in v4.24.0

func (mr *TxMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *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 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*TxMockRecorder) Query added in v4.24.0

func (mr *TxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*TxMockRecorder) QueryRow added in v4.24.0

func (mr *TxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*TxMockRecorder) Rollback added in v4.24.0

func (mr *TxMockRecorder) Rollback(arg0 interface{}) *gomock.Call

Rollback indicates an expected call of Rollback.

func (*TxMockRecorder) SendBatch added in v4.24.0

func (mr *TxMockRecorder) SendBatch(arg0, arg1 interface{}) *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