Documentation ¶
Index ¶
- type DBTX
- func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
- func (_m *DBTX) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)
- func (_m *DBTX) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)
- func (_m *DBTX) QueryRowContext(_a0 context.Context, _a1 string, _a2 ...interface{}) *sql.Row
- type Repository
- func (_m *Repository) CountListHearts(ctx context.Context, list_id int64) (int64, error)
- func (_m *Repository) CountListHeartsByUser(ctx context.Context, user_id int64) (int64, error)
- func (_m *Repository) CreateList(ctx context.Context, arg pg.CreateListParams) (pg.List, error)
- func (_m *Repository) CreateListItem(ctx context.Context, itemArg pg.CreateItemParams, ...) (*pg.Item, error)
- func (_m *Repository) CreateUser(ctx context.Context, arg pg.CreateUserParams) (pg.User, error)
- func (_m *Repository) DeleteItem(ctx context.Context, id int64) (pg.Item, error)
- func (_m *Repository) DeleteList(ctx context.Context, id int64) (pg.List, error)
- func (_m *Repository) DeleteUser(ctx context.Context, id int64) (pg.User, error)
- func (_m *Repository) GetItem(ctx context.Context, id int64) (pg.Item, error)
- func (_m *Repository) GetList(ctx context.Context, id int64) (pg.List, error)
- func (_m *Repository) GetListHearts(ctx context.Context, list_id int64) ([]pg.ListHeart, error)
- func (_m *Repository) GetListHeartsByUser(ctx context.Context, user_id int64) ([]pg.ListHeart, error)
- func (_m *Repository) GetListListItems(ctx context.Context, list_id int64) ([]pg.ListItem, error)
- func (_m *Repository) GetUser(ctx context.Context, id int64) (pg.User, error)
- func (_m *Repository) GetUserByEmail(ctx context.Context, email string) (pg.User, error)
- func (_m *Repository) GetUserLists(ctx context.Context, user_id int64) ([]pg.List, error)
- func (_m *Repository) ListItems(ctx context.Context) ([]pg.Item, error)
- func (_m *Repository) ListLists(ctx context.Context) ([]pg.List, error)
- func (_m *Repository) ListUsers(ctx context.Context) ([]pg.User, error)
- func (_m *Repository) SetListHeart(ctx context.Context, arg pg.SetListHeartParams) error
- func (_m *Repository) SetListItem(ctx context.Context, arg pg.SetListItemParams) error
- func (_m *Repository) UnsetListHeart(ctx context.Context, id int64) error
- func (_m *Repository) UnsetListItem(ctx context.Context, id int64) error
- func (_m *Repository) UpdateItem(ctx context.Context, arg pg.UpdateItemParams) (pg.Item, error)
- func (_m *Repository) UpdateList(ctx context.Context, arg pg.UpdateListParams) (pg.List, error)
- func (_m *Repository) UpdateListItem(ctx context.Context, arg pg.UpdateListItemParams) error
- func (_m *Repository) UpdateUser(ctx context.Context, arg pg.UpdateUserParams) (pg.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBTX ¶
DBTX is an autogenerated mock type for the DBTX type
func (*DBTX) ExecContext ¶
func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: _a0, _a1, _a2
func (*DBTX) PrepareContext ¶
PrepareContext provides a mock function with given fields: _a0, _a1
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) CountListHearts ¶
CountListHearts provides a mock function with given fields: ctx, list_id
func (*Repository) CountListHeartsByUser ¶
CountListHeartsByUser provides a mock function with given fields: ctx, user_id
func (*Repository) CreateList ¶
func (_m *Repository) CreateList(ctx context.Context, arg pg.CreateListParams) (pg.List, error)
CreateList provides a mock function with given fields: ctx, arg
func (*Repository) CreateListItem ¶
func (_m *Repository) CreateListItem(ctx context.Context, itemArg pg.CreateItemParams, listItemArg pg.SetListItemParams) (*pg.Item, error)
CreateListItem provides a mock function with given fields: ctx, itemArg, listItemArg
func (*Repository) CreateUser ¶
func (_m *Repository) CreateUser(ctx context.Context, arg pg.CreateUserParams) (pg.User, error)
CreateUser provides a mock function with given fields: ctx, arg
func (*Repository) DeleteItem ¶
DeleteItem provides a mock function with given fields: ctx, id
func (*Repository) DeleteList ¶
DeleteList provides a mock function with given fields: ctx, id
func (*Repository) DeleteUser ¶
DeleteUser provides a mock function with given fields: ctx, id
func (*Repository) GetListHearts ¶
GetListHearts provides a mock function with given fields: ctx, list_id
func (*Repository) GetListHeartsByUser ¶
func (_m *Repository) GetListHeartsByUser(ctx context.Context, user_id int64) ([]pg.ListHeart, error)
GetListHeartsByUser provides a mock function with given fields: ctx, user_id
func (*Repository) GetListListItems ¶
GetListListItems provides a mock function with given fields: ctx, list_id
func (*Repository) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*Repository) GetUserLists ¶
GetUserLists provides a mock function with given fields: ctx, user_id
func (*Repository) SetListHeart ¶
func (_m *Repository) SetListHeart(ctx context.Context, arg pg.SetListHeartParams) error
SetListHeart provides a mock function with given fields: ctx, arg
func (*Repository) SetListItem ¶
func (_m *Repository) SetListItem(ctx context.Context, arg pg.SetListItemParams) error
SetListItem provides a mock function with given fields: ctx, arg
func (*Repository) UnsetListHeart ¶
func (_m *Repository) UnsetListHeart(ctx context.Context, id int64) error
UnsetListHeart provides a mock function with given fields: ctx, id
func (*Repository) UnsetListItem ¶
func (_m *Repository) UnsetListItem(ctx context.Context, id int64) error
UnsetListItem provides a mock function with given fields: ctx, id
func (*Repository) UpdateItem ¶
func (_m *Repository) UpdateItem(ctx context.Context, arg pg.UpdateItemParams) (pg.Item, error)
UpdateItem provides a mock function with given fields: ctx, arg
func (*Repository) UpdateList ¶
func (_m *Repository) UpdateList(ctx context.Context, arg pg.UpdateListParams) (pg.List, error)
UpdateList provides a mock function with given fields: ctx, arg
func (*Repository) UpdateListItem ¶
func (_m *Repository) UpdateListItem(ctx context.Context, arg pg.UpdateListItemParams) error
UpdateListItem provides a mock function with given fields: ctx, arg
func (*Repository) UpdateUser ¶
func (_m *Repository) UpdateUser(ctx context.Context, arg pg.UpdateUserParams) (pg.User, error)
UpdateUser provides a mock function with given fields: ctx, arg