Documentation ¶
Index ¶
- type UserRepo
- func (repo *UserRepo) Create(githubId int64, username string, role int) (*types.User, error)
- func (repo *UserRepo) GetAll() (types.Users, error)
- func (repo *UserRepo) GetByGithubId(id int64) (*types.User, error)
- func (repo *UserRepo) GetById(id int) (*types.User, error)
- func (repo *UserRepo) GetByUsername(username string) (*types.User, error)
- func (repo *UserRepo) LoginAt(id int) error
- func (repo *UserRepo) Upsert(githubId int64, username string, role int) (*types.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo() *UserRepo
func (*UserRepo) GetByUsername ¶
Click to show internal directories.
Click to hide internal directories.