Documentation ¶
Overview ¶
Package mock_database is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type Follower
- func (m *Follower) EXPECT() *FollowerMockRecorder
- func (m *Follower) Get(dest interface{}, query string, args ...interface{}) error
- func (m *Follower) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (m *Follower) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
- func (m *Follower) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)
- func (m *Follower) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (m *Follower) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (m *Follower) QueryRow(query string, args ...interface{}) *sql.Row
- func (m *Follower) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (m *Follower) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row
- func (m *Follower) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (m *Follower) Select(dest interface{}, query string, args ...interface{}) error
- func (m *Follower) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type FollowerMockRecorder
- func (mr *FollowerMockRecorder) Get(dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) NamedQuery(query, arg interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) NamedQueryContext(ctx, query, arg interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) Query(query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) QueryRow(query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) QueryRowContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) QueryRowxContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) QueryxContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) Select(dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *FollowerMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
- type Master
- func (m *Master) Begin() (*sql.Tx, error)
- func (m *Master) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (m *Master) BindNamed(query string, arg interface{}) (string, []interface{}, error)
- func (m *Master) EXPECT() *MasterMockRecorder
- func (m *Master) Exec(query string, args ...interface{}) (sql.Result, error)
- func (m *Master) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (m *Master) NamedExec(query string, arg interface{}) (sql.Result, error)
- func (m *Master) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (m *Master) Rebind(sql string) string
- type MasterMockRecorder
- func (mr *MasterMockRecorder) Begin() *gomock.Call
- func (mr *MasterMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
- func (mr *MasterMockRecorder) BindNamed(query, arg interface{}) *gomock.Call
- func (mr *MasterMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MasterMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MasterMockRecorder) NamedExec(query, arg interface{}) *gomock.Call
- func (mr *MasterMockRecorder) NamedExecContext(ctx, query, arg interface{}) *gomock.Call
- func (mr *MasterMockRecorder) Rebind(sql interface{}) *gomock.Call
- type MockFollower
- func (m *MockFollower) EXPECT() *MockFollowerMockRecorder
- func (m *MockFollower) Get(dest any, query string, args ...any) error
- func (m *MockFollower) GetContext(ctx context.Context, dest any, query string, args ...any) error
- func (m *MockFollower) NamedQuery(query string, arg any) (*sqlx.Rows, error)
- func (m *MockFollower) NamedQueryContext(ctx context.Context, query string, arg any) (*sqlx.Rows, error)
- func (m *MockFollower) Query(query string, args ...any) (*sql.Rows, error)
- func (m *MockFollower) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (m *MockFollower) QueryRow(query string, args ...any) *sql.Row
- func (m *MockFollower) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
- func (m *MockFollower) QueryRowxContext(ctx context.Context, query string, args ...any) *sqlx.Row
- func (m *MockFollower) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)
- func (m *MockFollower) Rebind(sql string) string
- func (m *MockFollower) Select(dest any, query string, args ...any) error
- func (m *MockFollower) SelectContext(ctx context.Context, dest any, query string, args ...any) error
- type MockFollowerMockRecorder
- func (mr *MockFollowerMockRecorder) Get(dest, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) NamedQuery(query, arg any) *gomock.Call
- func (mr *MockFollowerMockRecorder) NamedQueryContext(ctx, query, arg any) *gomock.Call
- func (mr *MockFollowerMockRecorder) Query(query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) QueryRow(query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) Rebind(sql any) *gomock.Call
- func (mr *MockFollowerMockRecorder) Select(dest, query any, args ...any) *gomock.Call
- func (mr *MockFollowerMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call
- type MockISQL
- func (m *MockISQL) Begin() (*sql.Tx, error)
- func (m *MockISQL) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (m *MockISQL) Beginx() (*sqlx.Tx, error)
- func (m *MockISQL) BindNamed(query string, arg any) (string, []any, error)
- func (m *MockISQL) EXPECT() *MockISQLMockRecorder
- func (m *MockISQL) Exec(query string, args ...any) (sql.Result, error)
- func (m *MockISQL) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (m *MockISQL) Get(dest any, query string, args ...any) error
- func (m *MockISQL) GetContext(ctx context.Context, dest any, query string, args ...any) error
- func (m *MockISQL) GetTransaction() database.Transactions
- func (m *MockISQL) NamedExec(query string, arg any) (sql.Result, error)
- func (m *MockISQL) NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)
- func (m *MockISQL) NamedQuery(query string, arg any) (*sqlx.Rows, error)
- func (m *MockISQL) NamedQueryContext(ctx context.Context, query string, arg any) (*sqlx.Rows, error)
- func (m *MockISQL) Query(query string, args ...any) (*sql.Rows, error)
- func (m *MockISQL) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (m *MockISQL) QueryRow(query string, args ...any) *sql.Row
- func (m *MockISQL) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
- func (m *MockISQL) QueryRowxContext(ctx context.Context, query string, args ...any) *sqlx.Row
- func (m *MockISQL) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)
- func (m *MockISQL) Read(ctx context.Context, opts *database.QueryOpts, additionalParams ...any) error
- func (m *MockISQL) Rebind(sql string) string
- func (m *MockISQL) Select(dest any, query string, args ...any) error
- func (m *MockISQL) SelectContext(ctx context.Context, dest any, query string, args ...any) error
- func (m *MockISQL) Write(ctx context.Context, opts *database.QueryOpts, isSoftDelete ...bool) (*database.CUDResponse, error)
- type MockISQLMockRecorder
- func (mr *MockISQLMockRecorder) Begin() *gomock.Call
- func (mr *MockISQLMockRecorder) BeginTx(ctx, opts any) *gomock.Call
- func (mr *MockISQLMockRecorder) Beginx() *gomock.Call
- func (mr *MockISQLMockRecorder) BindNamed(query, arg any) *gomock.Call
- func (mr *MockISQLMockRecorder) Exec(query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) Get(dest, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) GetTransaction() *gomock.Call
- func (mr *MockISQLMockRecorder) NamedExec(query, arg any) *gomock.Call
- func (mr *MockISQLMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call
- func (mr *MockISQLMockRecorder) NamedQuery(query, arg any) *gomock.Call
- func (mr *MockISQLMockRecorder) NamedQueryContext(ctx, query, arg any) *gomock.Call
- func (mr *MockISQLMockRecorder) Query(query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) QueryRow(query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) Read(ctx, opts any, additionalParams ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) Rebind(sql any) *gomock.Call
- func (mr *MockISQLMockRecorder) Select(dest, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call
- func (mr *MockISQLMockRecorder) Write(ctx, opts any, isSoftDelete ...any) *gomock.Call
- type MockMaster
- func (m *MockMaster) Begin() (*sql.Tx, error)
- func (m *MockMaster) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (m *MockMaster) Beginx() (*sqlx.Tx, error)
- func (m *MockMaster) BindNamed(query string, arg any) (string, []any, error)
- func (m *MockMaster) EXPECT() *MockMasterMockRecorder
- func (m *MockMaster) Exec(query string, args ...any) (sql.Result, error)
- func (m *MockMaster) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (m *MockMaster) NamedExec(query string, arg any) (sql.Result, error)
- func (m *MockMaster) NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)
- func (m *MockMaster) QueryRow(query string, args ...any) *sql.Row
- func (m *MockMaster) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
- func (m *MockMaster) Rebind(sql string) string
- type MockMasterMockRecorder
- func (mr *MockMasterMockRecorder) Begin() *gomock.Call
- func (mr *MockMasterMockRecorder) BeginTx(ctx, opts any) *gomock.Call
- func (mr *MockMasterMockRecorder) Beginx() *gomock.Call
- func (mr *MockMasterMockRecorder) BindNamed(query, arg any) *gomock.Call
- func (mr *MockMasterMockRecorder) Exec(query any, args ...any) *gomock.Call
- func (mr *MockMasterMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockMasterMockRecorder) NamedExec(query, arg any) *gomock.Call
- func (mr *MockMasterMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call
- func (mr *MockMasterMockRecorder) QueryRow(query any, args ...any) *gomock.Call
- func (mr *MockMasterMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockMasterMockRecorder) Rebind(sql any) *gomock.Call
- type MockcommonDB
- type MockcommonDBMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Follower ¶
type Follower struct {
// contains filtered or unexported fields
}
Follower is a mock of Follower interface.
func NewFollower ¶
func NewFollower(ctrl *gomock.Controller) *Follower
NewFollower creates a new mock instance.
func (*Follower) EXPECT ¶
func (m *Follower) EXPECT() *FollowerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Follower) GetContext ¶
func (m *Follower) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext mocks base method.
func (*Follower) NamedQuery ¶
NamedQuery mocks base method.
func (*Follower) NamedQueryContext ¶
func (m *Follower) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)
NamedQueryContext mocks base method.
func (*Follower) QueryContext ¶
func (m *Follower) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryContext mocks base method.
func (*Follower) QueryRowContext ¶
QueryRowContext mocks base method.
func (*Follower) QueryRowxContext ¶
func (m *Follower) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row
QueryRowxContext mocks base method.
func (*Follower) QueryxContext ¶
func (m *Follower) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
QueryxContext mocks base method.
type FollowerMockRecorder ¶
type FollowerMockRecorder struct {
// contains filtered or unexported fields
}
FollowerMockRecorder is the mock recorder for Follower.
func (*FollowerMockRecorder) Get ¶
func (mr *FollowerMockRecorder) Get(dest, query interface{}, args ...interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*FollowerMockRecorder) GetContext ¶
func (mr *FollowerMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
GetContext indicates an expected call of GetContext.
func (*FollowerMockRecorder) NamedQuery ¶
func (mr *FollowerMockRecorder) NamedQuery(query, arg interface{}) *gomock.Call
NamedQuery indicates an expected call of NamedQuery.
func (*FollowerMockRecorder) NamedQueryContext ¶
func (mr *FollowerMockRecorder) NamedQueryContext(ctx, query, arg interface{}) *gomock.Call
NamedQueryContext indicates an expected call of NamedQueryContext.
func (*FollowerMockRecorder) Query ¶
func (mr *FollowerMockRecorder) Query(query interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*FollowerMockRecorder) QueryContext ¶
func (mr *FollowerMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*FollowerMockRecorder) QueryRow ¶
func (mr *FollowerMockRecorder) QueryRow(query interface{}, args ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*FollowerMockRecorder) QueryRowContext ¶
func (mr *FollowerMockRecorder) QueryRowContext(ctx, query interface{}, args ...interface{}) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
func (*FollowerMockRecorder) QueryRowxContext ¶
func (mr *FollowerMockRecorder) QueryRowxContext(ctx, query interface{}, args ...interface{}) *gomock.Call
QueryRowxContext indicates an expected call of QueryRowxContext.
func (*FollowerMockRecorder) QueryxContext ¶
func (mr *FollowerMockRecorder) QueryxContext(ctx, query interface{}, args ...interface{}) *gomock.Call
QueryxContext indicates an expected call of QueryxContext.
func (*FollowerMockRecorder) Select ¶
func (mr *FollowerMockRecorder) Select(dest, query interface{}, args ...interface{}) *gomock.Call
Select indicates an expected call of Select.
func (*FollowerMockRecorder) SelectContext ¶
func (mr *FollowerMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
SelectContext indicates an expected call of SelectContext.
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
Master is a mock of Master interface.
func NewMaster ¶
func NewMaster(ctrl *gomock.Controller) *Master
NewMaster creates a new mock instance.
func (*Master) EXPECT ¶
func (m *Master) EXPECT() *MasterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Master) ExecContext ¶
func (m *Master) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext mocks base method.
type MasterMockRecorder ¶
type MasterMockRecorder struct {
// contains filtered or unexported fields
}
MasterMockRecorder is the mock recorder for Master.
func (*MasterMockRecorder) Begin ¶
func (mr *MasterMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin.
func (*MasterMockRecorder) BeginTx ¶
func (mr *MasterMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MasterMockRecorder) BindNamed ¶
func (mr *MasterMockRecorder) BindNamed(query, arg interface{}) *gomock.Call
BindNamed indicates an expected call of BindNamed.
func (*MasterMockRecorder) Exec ¶
func (mr *MasterMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MasterMockRecorder) ExecContext ¶
func (mr *MasterMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MasterMockRecorder) NamedExec ¶
func (mr *MasterMockRecorder) NamedExec(query, arg interface{}) *gomock.Call
NamedExec indicates an expected call of NamedExec.
func (*MasterMockRecorder) NamedExecContext ¶
func (mr *MasterMockRecorder) NamedExecContext(ctx, query, arg interface{}) *gomock.Call
NamedExecContext indicates an expected call of NamedExecContext.
func (*MasterMockRecorder) Rebind ¶
func (mr *MasterMockRecorder) Rebind(sql interface{}) *gomock.Call
Rebind indicates an expected call of Rebind.
type MockFollower ¶ added in v2.22.1
type MockFollower struct {
// contains filtered or unexported fields
}
MockFollower is a mock of Follower interface.
func NewMockFollower ¶ added in v2.22.1
func NewMockFollower(ctrl *gomock.Controller) *MockFollower
NewMockFollower creates a new mock instance.
func (*MockFollower) EXPECT ¶ added in v2.22.1
func (m *MockFollower) EXPECT() *MockFollowerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFollower) Get ¶ added in v2.22.1
func (m *MockFollower) Get(dest any, query string, args ...any) error
Get mocks base method.
func (*MockFollower) GetContext ¶ added in v2.22.1
GetContext mocks base method.
func (*MockFollower) NamedQuery ¶ added in v2.22.1
NamedQuery mocks base method.
func (*MockFollower) NamedQueryContext ¶ added in v2.22.1
func (m *MockFollower) NamedQueryContext(ctx context.Context, query string, arg any) (*sqlx.Rows, error)
NamedQueryContext mocks base method.
func (*MockFollower) QueryContext ¶ added in v2.22.1
func (m *MockFollower) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
QueryContext mocks base method.
func (*MockFollower) QueryRow ¶ added in v2.22.1
func (m *MockFollower) QueryRow(query string, args ...any) *sql.Row
QueryRow mocks base method.
func (*MockFollower) QueryRowContext ¶ added in v2.22.1
QueryRowContext mocks base method.
func (*MockFollower) QueryRowxContext ¶ added in v2.22.1
QueryRowxContext mocks base method.
func (*MockFollower) QueryxContext ¶ added in v2.22.1
func (m *MockFollower) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)
QueryxContext mocks base method.
func (*MockFollower) Rebind ¶ added in v2.22.1
func (m *MockFollower) Rebind(sql string) string
Rebind mocks base method.
func (*MockFollower) Select ¶ added in v2.22.1
func (m *MockFollower) Select(dest any, query string, args ...any) error
Select mocks base method.
func (*MockFollower) SelectContext ¶ added in v2.22.1
func (m *MockFollower) SelectContext(ctx context.Context, dest any, query string, args ...any) error
SelectContext mocks base method.
type MockFollowerMockRecorder ¶ added in v2.22.1
type MockFollowerMockRecorder struct {
// contains filtered or unexported fields
}
MockFollowerMockRecorder is the mock recorder for MockFollower.
func (*MockFollowerMockRecorder) Get ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) Get(dest, query any, args ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockFollowerMockRecorder) GetContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call
GetContext indicates an expected call of GetContext.
func (*MockFollowerMockRecorder) NamedQuery ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) NamedQuery(query, arg any) *gomock.Call
NamedQuery indicates an expected call of NamedQuery.
func (*MockFollowerMockRecorder) NamedQueryContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) NamedQueryContext(ctx, query, arg any) *gomock.Call
NamedQueryContext indicates an expected call of NamedQueryContext.
func (*MockFollowerMockRecorder) Query ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) Query(query any, args ...any) *gomock.Call
Query indicates an expected call of Query.
func (*MockFollowerMockRecorder) QueryContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockFollowerMockRecorder) QueryRow ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) QueryRow(query any, args ...any) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockFollowerMockRecorder) QueryRowContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
func (*MockFollowerMockRecorder) QueryRowxContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call
QueryRowxContext indicates an expected call of QueryRowxContext.
func (*MockFollowerMockRecorder) QueryxContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call
QueryxContext indicates an expected call of QueryxContext.
func (*MockFollowerMockRecorder) Rebind ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) Rebind(sql any) *gomock.Call
Rebind indicates an expected call of Rebind.
func (*MockFollowerMockRecorder) Select ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) Select(dest, query any, args ...any) *gomock.Call
Select indicates an expected call of Select.
func (*MockFollowerMockRecorder) SelectContext ¶ added in v2.22.1
func (mr *MockFollowerMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call
SelectContext indicates an expected call of SelectContext.
type MockISQL ¶ added in v2.22.1
type MockISQL struct {
// contains filtered or unexported fields
}
MockISQL is a mock of ISQL interface.
func NewMockISQL ¶ added in v2.22.1
func NewMockISQL(ctrl *gomock.Controller) *MockISQL
NewMockISQL creates a new mock instance.
func (*MockISQL) EXPECT ¶ added in v2.22.1
func (m *MockISQL) EXPECT() *MockISQLMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockISQL) ExecContext ¶ added in v2.22.1
ExecContext mocks base method.
func (*MockISQL) GetContext ¶ added in v2.22.1
GetContext mocks base method.
func (*MockISQL) GetTransaction ¶ added in v2.22.1
func (m *MockISQL) GetTransaction() database.Transactions
GetTransaction mocks base method.
func (*MockISQL) NamedExecContext ¶ added in v2.22.1
NamedExecContext mocks base method.
func (*MockISQL) NamedQuery ¶ added in v2.22.1
NamedQuery mocks base method.
func (*MockISQL) NamedQueryContext ¶ added in v2.22.1
func (m *MockISQL) NamedQueryContext(ctx context.Context, query string, arg any) (*sqlx.Rows, error)
NamedQueryContext mocks base method.
func (*MockISQL) QueryContext ¶ added in v2.22.1
QueryContext mocks base method.
func (*MockISQL) QueryRowContext ¶ added in v2.22.1
QueryRowContext mocks base method.
func (*MockISQL) QueryRowxContext ¶ added in v2.22.1
QueryRowxContext mocks base method.
func (*MockISQL) QueryxContext ¶ added in v2.22.1
func (m *MockISQL) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)
QueryxContext mocks base method.
func (*MockISQL) Read ¶ added in v2.22.1
func (m *MockISQL) Read(ctx context.Context, opts *database.QueryOpts, additionalParams ...any) error
Read mocks base method.
func (*MockISQL) SelectContext ¶ added in v2.22.1
SelectContext mocks base method.
type MockISQLMockRecorder ¶ added in v2.22.1
type MockISQLMockRecorder struct {
// contains filtered or unexported fields
}
MockISQLMockRecorder is the mock recorder for MockISQL.
func (*MockISQLMockRecorder) Begin ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin.
func (*MockISQLMockRecorder) BeginTx ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) BeginTx(ctx, opts any) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockISQLMockRecorder) Beginx ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Beginx() *gomock.Call
Beginx indicates an expected call of Beginx.
func (*MockISQLMockRecorder) BindNamed ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) BindNamed(query, arg any) *gomock.Call
BindNamed indicates an expected call of BindNamed.
func (*MockISQLMockRecorder) Exec ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Exec(query any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockISQLMockRecorder) ExecContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockISQLMockRecorder) Get ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Get(dest, query any, args ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockISQLMockRecorder) GetContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call
GetContext indicates an expected call of GetContext.
func (*MockISQLMockRecorder) GetTransaction ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) GetTransaction() *gomock.Call
GetTransaction indicates an expected call of GetTransaction.
func (*MockISQLMockRecorder) NamedExec ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) NamedExec(query, arg any) *gomock.Call
NamedExec indicates an expected call of NamedExec.
func (*MockISQLMockRecorder) NamedExecContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call
NamedExecContext indicates an expected call of NamedExecContext.
func (*MockISQLMockRecorder) NamedQuery ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) NamedQuery(query, arg any) *gomock.Call
NamedQuery indicates an expected call of NamedQuery.
func (*MockISQLMockRecorder) NamedQueryContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) NamedQueryContext(ctx, query, arg any) *gomock.Call
NamedQueryContext indicates an expected call of NamedQueryContext.
func (*MockISQLMockRecorder) Query ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Query(query any, args ...any) *gomock.Call
Query indicates an expected call of Query.
func (*MockISQLMockRecorder) QueryContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockISQLMockRecorder) QueryRow ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) QueryRow(query any, args ...any) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockISQLMockRecorder) QueryRowContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
func (*MockISQLMockRecorder) QueryRowxContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call
QueryRowxContext indicates an expected call of QueryRowxContext.
func (*MockISQLMockRecorder) QueryxContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call
QueryxContext indicates an expected call of QueryxContext.
func (*MockISQLMockRecorder) Read ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Read(ctx, opts any, additionalParams ...any) *gomock.Call
Read indicates an expected call of Read.
func (*MockISQLMockRecorder) Rebind ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Rebind(sql any) *gomock.Call
Rebind indicates an expected call of Rebind.
func (*MockISQLMockRecorder) Select ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) Select(dest, query any, args ...any) *gomock.Call
Select indicates an expected call of Select.
func (*MockISQLMockRecorder) SelectContext ¶ added in v2.22.1
func (mr *MockISQLMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call
SelectContext indicates an expected call of SelectContext.
type MockMaster ¶ added in v2.22.1
type MockMaster struct {
// contains filtered or unexported fields
}
MockMaster is a mock of Master interface.
func NewMockMaster ¶ added in v2.22.1
func NewMockMaster(ctrl *gomock.Controller) *MockMaster
NewMockMaster creates a new mock instance.
func (*MockMaster) Begin ¶ added in v2.22.1
func (m *MockMaster) Begin() (*sql.Tx, error)
Begin mocks base method.
func (*MockMaster) Beginx ¶ added in v2.22.1
func (m *MockMaster) Beginx() (*sqlx.Tx, error)
Beginx mocks base method.
func (*MockMaster) EXPECT ¶ added in v2.22.1
func (m *MockMaster) EXPECT() *MockMasterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMaster) ExecContext ¶ added in v2.22.1
func (m *MockMaster) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
ExecContext mocks base method.
func (*MockMaster) NamedExecContext ¶ added in v2.22.1
func (m *MockMaster) NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)
NamedExecContext mocks base method.
func (*MockMaster) QueryRow ¶ added in v2.22.1
func (m *MockMaster) QueryRow(query string, args ...any) *sql.Row
QueryRow mocks base method.
func (*MockMaster) QueryRowContext ¶ added in v2.22.1
QueryRowContext mocks base method.
func (*MockMaster) Rebind ¶ added in v2.22.1
func (m *MockMaster) Rebind(sql string) string
Rebind mocks base method.
type MockMasterMockRecorder ¶ added in v2.22.1
type MockMasterMockRecorder struct {
// contains filtered or unexported fields
}
MockMasterMockRecorder is the mock recorder for MockMaster.
func (*MockMasterMockRecorder) Begin ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin.
func (*MockMasterMockRecorder) BeginTx ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) BeginTx(ctx, opts any) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockMasterMockRecorder) Beginx ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) Beginx() *gomock.Call
Beginx indicates an expected call of Beginx.
func (*MockMasterMockRecorder) BindNamed ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) BindNamed(query, arg any) *gomock.Call
BindNamed indicates an expected call of BindNamed.
func (*MockMasterMockRecorder) Exec ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) Exec(query any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockMasterMockRecorder) ExecContext ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockMasterMockRecorder) NamedExec ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) NamedExec(query, arg any) *gomock.Call
NamedExec indicates an expected call of NamedExec.
func (*MockMasterMockRecorder) NamedExecContext ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call
NamedExecContext indicates an expected call of NamedExecContext.
func (*MockMasterMockRecorder) QueryRow ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) QueryRow(query any, args ...any) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockMasterMockRecorder) QueryRowContext ¶ added in v2.22.1
func (mr *MockMasterMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
type MockcommonDB ¶ added in v2.22.1
type MockcommonDB struct {
// contains filtered or unexported fields
}
MockcommonDB is a mock of commonDB interface.
func NewMockcommonDB ¶ added in v2.22.1
func NewMockcommonDB(ctrl *gomock.Controller) *MockcommonDB
NewMockcommonDB creates a new mock instance.
func (*MockcommonDB) EXPECT ¶ added in v2.22.1
func (m *MockcommonDB) EXPECT() *MockcommonDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockcommonDB) QueryRow ¶ added in v2.22.1
func (m *MockcommonDB) QueryRow(query string, args ...any) *sql.Row
QueryRow mocks base method.
func (*MockcommonDB) QueryRowContext ¶ added in v2.22.1
QueryRowContext mocks base method.
func (*MockcommonDB) Rebind ¶ added in v2.22.1
func (m *MockcommonDB) Rebind(sql string) string
Rebind mocks base method.
type MockcommonDBMockRecorder ¶ added in v2.22.1
type MockcommonDBMockRecorder struct {
// contains filtered or unexported fields
}
MockcommonDBMockRecorder is the mock recorder for MockcommonDB.
func (*MockcommonDBMockRecorder) QueryRow ¶ added in v2.22.1
func (mr *MockcommonDBMockRecorder) QueryRow(query any, args ...any) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockcommonDBMockRecorder) QueryRowContext ¶ added in v2.22.1
func (mr *MockcommonDBMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.