Documentation ¶
Overview ¶
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
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.