Documentation
¶
Index ¶
Constants ¶
View Source
const ( PermissionBanned = 1 << iota PermissionModerator PermissionAdmin )
User Permissions
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBVer ¶
type DBVer struct { ID int Version uint64 // as it's a UNIX timestamp, we need to take something high. }
DBVer is a struct which only scope is to help manage migrations.
type User ¶
type User struct { ID int Username string `sql:"size:20"` Permissions uint32 Email string Password string }
User is an user on bancho.
func (User) IsModerator ¶
IsModerator tells whether a user is a moderator.
type UserFriendship ¶
type UserFriendship struct { ID int // Don't ask me on what kind of drugs I was on when I decided they had to be lovers. // Because I have no idea. // Heroin, perhaps? Lover int Loved int }
UserFriendship is a friendship relationship between two users.
Click to show internal directories.
Click to hide internal directories.