Documentation ¶
Index ¶
- type AuditEvent
- type User
- type UserModel
- func (m *UserModel) AddFollower(following, followed int64) error
- func (m *UserModel) AddNewAuditEvent(userID int64, message string) error
- func (m *UserModel) BanUser(uid int64) error
- func (m *UserModel) GetAuditEvents(userID, page int64) ([]AuditEvent, int64, error)
- func (m *UserModel) GetFollowers(userID int64) ([]int64, error)
- func (m *UserModel) GetForeignUser(foreignUserID string, foreignWebsite string) (int64, error)
- func (m *UserModel) GetPassHash(uid int64) (string, error)
- func (m *UserModel) GetUserIDsForUsername(username string) ([]int64, error)
- func (m *UserModel) GetUserWithID(userID int64) (*User, error)
- func (m *UserModel) GetUserWithUsername(username string) (int64, error)
- func (m *UserModel) IsBanned(uid int64) (bool, error)
- func (m *UserModel) NewUser(username, email string, passHash []byte, foreignUser bool, ...) (int64, error)
- func (m *UserModel) SetNewHash(uid int64, hash []byte) error
- func (m *UserModel) SetUserRank(uid, rank int64) error
- func (m *UserModel) UpdateProfile(bio, birthdate, gender, username string, userID int64) error
- type Username
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEvent ¶
type UserModel ¶
func (*UserModel) AddFollower ¶
func (*UserModel) AddNewAuditEvent ¶
func (*UserModel) GetAuditEvents ¶
func (m *UserModel) GetAuditEvents(userID, page int64) ([]AuditEvent, int64, error)
func (*UserModel) GetForeignUser ¶
Maybe I should cut down on the copy pasta
func (*UserModel) GetUserIDsForUsername ¶
func (*UserModel) GetUserWithUsername ¶
func (*UserModel) NewUser ¶
func (m *UserModel) NewUser(username, email string, passHash []byte, foreignUser bool, foreignUserID, foreignWebsite string) (int64, error)
Password in this context is in plaintext
func (*UserModel) SetUserRank ¶
Click to show internal directories.
Click to hide internal directories.