Documentation ¶
Index ¶
- func Create(value interface{}) error
- func DeleteByID(model interface{}, id uint64) (count int64, err error)
- func DeleteByIDS(model interface{}, ids []uint64) (count int64, err error)
- func DeleteByModel(model interface{}) (count int64, err error)
- func DeleteByWhere(model, where interface{}) (count int64, err error)
- func Find(where interface{}, out interface{}, associations []string, orders ...string) error
- func First(where interface{}, out interface{}, associations []string) (notFound bool, err error)
- func FirstByID(out interface{}, id string) (notFound bool, err error)
- func Save(value interface{}) error
- func Scan(model, where interface{}, out interface{}) (notFound bool, err error)
- func ScanList(model, where interface{}, out interface{}, orders ...string) error
- func Updates(where interface{}, value interface{}) error
- type TaskRepository
- func (r *TaskRepository) Add(task *models.Task) error
- func (r *TaskRepository) All() (*[]models.Task, error)
- func (r *TaskRepository) Delete(task *models.Task) error
- func (r *TaskRepository) Get(id string) (*models.Task, error)
- func (r *TaskRepository) Query(q *models.Task) (*[]models.Task, error)
- func (r *TaskRepository) Update(task *models.Task) error
- type UserRepo
- func (r *UserRepo) Add(user *models.User) error
- func (r *UserRepo) All() (*[]models.User, error)
- func (r *UserRepo) Delete(user *models.User) error
- func (r *UserRepo) Get(id string) (*models.User, error)
- func (r *UserRepo) GetByUsername(username string) (*models.User, error)
- func (r *UserRepo) Query(q *models.User) (*[]models.User, error)
- func (r *UserRepo) Update(user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByIDS ¶
Delete
Types ¶
type TaskRepository ¶
type TaskRepository struct{}
func GetTaskRepository ¶
func GetTaskRepository() *TaskRepository
type UserRepo ¶
type UserRepo struct{}
func GetUserRepo ¶
func GetUserRepo() *UserRepo
func (*UserRepo) GetByUsername ¶
Click to show internal directories.
Click to hide internal directories.