Documentation ¶
Index ¶
- type AttendedEvent
- type Demerit
- type Merit
- type User
- func (u *User) DecrementEventCount()
- func (u *User) Delete() error
- func (u *User) GetTrueNick() string
- func (u *User) GiveDemerit(reason string, who *User) error
- func (u *User) GiveMerit(reason string, who *User) error
- func (u *User) IncrementEventCount()
- func (u *User) IsAdmin() bool
- func (u *User) Issues() []string
- func (u *User) Login(code string) error
- func (u *User) Save() error
- func (u *User) StillLoggedIn() bool
- func (u *User) ToMap() map[string]interface{}
- func (u *User) UpdateEventCount(count int64)
- type UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttendedEvent ¶
type User ¶
type User struct { ID string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Rank ranks.Rank `json:"rank" bson:"rank"` Notes string `json:"notes" bson:"notes"` Events int64 `json:"events" bson:"events"` LegacyEvents int64 `json:"legacy_events" bson:"legacy_events"` PrimaryOrg string `json:"primary_org" bson:"primary_org"` RSIMember bool `json:"rsi_member" bson:"rsi_member"` BadAffiliation bool `json:"bad_affiliation" bson:"bad_affiliation"` Affilations []string `json:"affiliations" bson:"affilations"` Avatar string `json:"avatar" bson:"avatar"` Updated time.Time `json:"updated" bson:"updated"` IsBot bool `json:"is_bot" bson:"is_bot"` IsAlly bool `json:"is_ally" bson:"is_ally"` Validated bool `json:"validated" bson:"validated"` ValidationCode string `json:"validation_code" bson:"validation_code"` Merits []*Merit `json:"merits" bson:"merits"` Demerits []*Demerit `json:"demerits" bson:"demerits"` Playtime string `json:"playtime" bson:"playtime"` Gameplay string `json:"gamplay" bson:"gameplay"` Age int `json:"age" bson:"age"` Recruiter *User `json:"recruiter" bson:"recruiter"` Discord *discordgo.Member `json:"-" bson:"discord"` Access *auth.UserAccess `json:"-" bson:"access"` }
func (*User) DecrementEventCount ¶
func (u *User) DecrementEventCount()
func (*User) GetTrueNick ¶
func (*User) IncrementEventCount ¶
func (u *User) IncrementEventCount()
func (*User) StillLoggedIn ¶
func (*User) UpdateEventCount ¶
Click to show internal directories.
Click to hide internal directories.