Documentation ¶
Index ¶
- type Fromer
- type GramRepo
- type Inserter
- type UserRepo
- func (r UserRepo) Add(firstName, lastName, userName, avatar string) (_ uint64, err error)
- func (r UserRepo) Begin() (_ UserRepo, err error)
- func (r UserRepo) CertificateAdd(sha256 string, expireAt int64, userID uint64) error
- func (r UserRepo) CertificateListByUser(userID uint64) (_ []model.Certificate, err error)
- func (r UserRepo) CodeGet(_ uint64) (_ string, found bool, err error)
- func (r UserRepo) Commit() (_ error)
- func (r UserRepo) Get(id uint64) (_ model.User, found bool, err error)
- func (r UserRepo) GetByCertificate(certSHA256 string) (_ model.User, found bool, err error)
- func (r UserRepo) GetByUserName(userName string) (_ model.User, found bool, err error)
- func (r UserRepo) PasswordGet(userID uint64) (_ model.Password, found bool, err error)
- func (r UserRepo) PasswordSet(userID uint64, password model.Password) error
- func (r UserRepo) ProfileGet(userID uint64) (_ model.Profile, _ []model.Certificate, found bool, err error)
- func (r UserRepo) Rollback() (_ error)
- func (r UserRepo) UpdateAvatar(userID uint64, avatar string) error
- func (r UserRepo) UpdateFirstName(userID uint64, firstName string) error
- func (r UserRepo) UpdateLastName(userID uint64, lastName string) error
- func (r UserRepo) UpdateSeen(userID uint64) error
- func (r UserRepo) UpdateUserName(userID uint64, userName string) error
- func (r UserRepo) WithTx(fn func(UserRepo) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GramRepo ¶
type GramRepo struct {
// contains filtered or unexported fields
}
func NewGramRepo ¶
func NewGramRepo(db *Database, now fnTime) GramRepo
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo(db *Database, now fnTime) UserRepo
func (UserRepo) CertificateAdd ¶
func (UserRepo) CertificateListByUser ¶
func (r UserRepo) CertificateListByUser(userID uint64) (_ []model.Certificate, err error)
func (UserRepo) GetByCertificate ¶
func (UserRepo) GetByUserName ¶
func (UserRepo) PasswordGet ¶
func (UserRepo) PasswordSet ¶
func (UserRepo) ProfileGet ¶
func (UserRepo) UpdateFirstName ¶
func (UserRepo) UpdateLastName ¶
func (UserRepo) UpdateSeen ¶
func (UserRepo) UpdateUserName ¶
Click to show internal directories.
Click to hide internal directories.