Documentation ¶
Index ¶
- type UserReadRepository
- type UserReadWriteRepository
- type UserRepository
- func (ur *UserRepository) InsertDB(user *users.User) (id int64, err error)
- func (ur *UserRepository) Login(login, password string) *sql.Row
- func (ur *UserRepository) ReadAllDB() *sql.Rows
- func (ur *UserRepository) ReadDB(id int64) *sql.Row
- func (ur *UserRepository) SoftDeleteDB(id int64) error
- func (ur *UserRepository) UpdateDB(id int64, user *users.User) (int64, error)
- type UserWriteRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserReadRepository ¶
type UserReadWriteRepository ¶
type UserReadWriteRepository interface { UserReadRepository UserWriteRepository }
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(db *sql.DB) *UserRepository
func (*UserRepository) InsertDB ¶
func (ur *UserRepository) InsertDB(user *users.User) (id int64, err error)
func (*UserRepository) ReadAllDB ¶
func (ur *UserRepository) ReadAllDB() *sql.Rows
func (*UserRepository) SoftDeleteDB ¶
func (ur *UserRepository) SoftDeleteDB(id int64) error
Click to show internal directories.
Click to hide internal directories.