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 ¶
- type AMQPConnection
- type AMQPConnectionMockRecorder
- type Database
- func (m *Database) Begin(arg0 context.Context) (pgx.Tx, error)
- func (m *Database) Close()
- func (m *Database) EXPECT() *DatabaseMockRecorder
- func (m *Database) Ping(arg0 context.Context) error
- func (m *Database) Query(arg0 context.Context, arg1 string, arg2 ...any) (pgx.Rows, error)
- func (m *Database) QueryRow(arg0 context.Context, arg1 string, arg2 ...any) pgx.Row
- type DatabaseMockRecorder
- func (mr *DatabaseMockRecorder) Begin(arg0 interface{}) *gomock.Call
- func (mr *DatabaseMockRecorder) Close() *gomock.Call
- func (mr *DatabaseMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *DatabaseMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *DatabaseMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type ReadCloser
- type ReadCloserMockRecorder
- type RedisClient
- func (m *RedisClient) Delete(ctx context.Context, keys ...string) error
- func (m *RedisClient) EXPECT() *RedisClientMockRecorder
- func (m *RedisClient) Enabled() bool
- func (m *RedisClient) Expire(ctx context.Context, ttl time.Duration, keys ...string) error
- func (m *RedisClient) Load(ctx context.Context, key string) ([]byte, error)
- func (m *RedisClient) LoadMany(ctx context.Context, keys ...string) ([]string, error)
- func (m *RedisClient) Pipeline() redis.Pipeliner
- func (m *RedisClient) Store(ctx context.Context, key string, value any, ttl time.Duration) error
- type RedisClientMockRecorder
- func (mr *RedisClientMockRecorder) Delete(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *RedisClientMockRecorder) Enabled() *gomock.Call
- func (mr *RedisClientMockRecorder) Expire(ctx, ttl interface{}, keys ...interface{}) *gomock.Call
- func (mr *RedisClientMockRecorder) Load(ctx, key interface{}) *gomock.Call
- func (mr *RedisClientMockRecorder) LoadMany(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *RedisClientMockRecorder) Pipeline() *gomock.Call
- func (mr *RedisClientMockRecorder) Store(ctx, key, value, ttl interface{}) *gomock.Call
- type Row
- type RowMockRecorder
- type Rows
- func (m *Rows) Close()
- func (m *Rows) CommandTag() pgconn.CommandTag
- func (m *Rows) Conn() *pgx.Conn
- func (m *Rows) EXPECT() *RowsMockRecorder
- func (m *Rows) Err() error
- func (m *Rows) FieldDescriptions() []pgconn.FieldDescription
- func (m *Rows) Next() bool
- func (m *Rows) RawValues() [][]byte
- func (m *Rows) Scan(arg0 ...interface{}) error
- func (m *Rows) Values() ([]interface{}, error)
- type RowsMockRecorder
- func (mr *RowsMockRecorder) Close() *gomock.Call
- func (mr *RowsMockRecorder) CommandTag() *gomock.Call
- func (mr *RowsMockRecorder) Conn() *gomock.Call
- func (mr *RowsMockRecorder) Err() *gomock.Call
- func (mr *RowsMockRecorder) FieldDescriptions() *gomock.Call
- func (mr *RowsMockRecorder) Next() *gomock.Call
- func (mr *RowsMockRecorder) RawValues() *gomock.Call
- func (mr *RowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
- func (mr *RowsMockRecorder) Values() *gomock.Call
- type Semaphore
- type SemaphoreMockRecorder
- type Tx
- func (m *Tx) Begin(arg0 context.Context) (pgx.Tx, error)
- func (m *Tx) Commit(arg0 context.Context) error
- func (m *Tx) Conn() *pgx.Conn
- func (m *Tx) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, ...) (int64, error)
- func (m *Tx) EXPECT() *TxMockRecorder
- func (m *Tx) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
- func (m *Tx) LargeObjects() pgx.LargeObjects
- func (m *Tx) Prepare(arg0 context.Context, arg1, arg2 string) (*pgconn.StatementDescription, error)
- func (m *Tx) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *Tx) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row
- func (m *Tx) Rollback(arg0 context.Context) error
- func (m *Tx) SendBatch(arg0 context.Context, arg1 *pgx.Batch) pgx.BatchResults
- type TxMockRecorder
- func (mr *TxMockRecorder) Begin(arg0 interface{}) *gomock.Call
- func (mr *TxMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *TxMockRecorder) Conn() *gomock.Call
- func (mr *TxMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *TxMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *TxMockRecorder) LargeObjects() *gomock.Call
- func (mr *TxMockRecorder) Prepare(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *TxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *TxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *TxMockRecorder) Rollback(arg0 interface{}) *gomock.Call
- func (mr *TxMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
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
func (m *AMQPConnection) EXPECT() *AMQPConnectionMockRecorder
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) EXPECT ¶ added in v4.24.0
func (m *Database) EXPECT() *DatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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) Pipeline ¶ added in v4.53.4
func (m *RedisClient) Pipeline() redis.Pipeliner
Pipeline 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.
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) CommandTag ¶ added in v4.24.0
func (m *Rows) CommandTag() pgconn.CommandTag
CommandTag 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) FieldDescriptions ¶ added in v4.24.0
func (m *Rows) FieldDescriptions() []pgconn.FieldDescription
FieldDescriptions 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.
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) 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.
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.