Documentation ¶
Index ¶
- type User
- func (u *User) Bytes() (data []byte)
- func (u *User) Can(actions ...feature.Action) (allowed bool)
- func (u *User) CanAll(actions ...feature.Action) (allowed bool)
- func (u *User) GetActions() (actions feature.Actions)
- func (u *User) GetActive() (active bool)
- func (u *User) GetAdminLocked() (locked bool)
- func (u *User) GetEID() (eid string)
- func (u *User) GetEmail() (email string)
- func (u *User) GetGroups() (groups feature.Groups)
- func (u *User) GetImage() (image string)
- func (u *User) GetName() (name string)
- func (u *User) GetOrigin() (origin string)
- func (u *User) GetRID() (rid string)
- func (u *User) GetSetting(key string) (value interface{})
- func (u *User) GetSettings(limitKeys ...string) (settings context.Context)
- func (u *User) IsVisitor() (visitor bool)
- func (u *User) SafeContext(includeKeys ...string) (ctx context.Context)
- func (u *User) UnsafeContext() (ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { RID string `json:"real-id"` EID string `json:"enjin-id"` Name string `json:"name"` Email string `json:"email"` Image string `json:"image"` Origin string `json:"origin"` Groups feature.Groups `json:"groups"` Actions feature.Actions `json:"actions"` Context context.Context `json:"context"` Active bool `json:"active"` AdminLocked bool `json:"admin-locked"` }
func (*User) GetActions ¶
func (*User) GetAdminLocked ¶ added in v0.5.6
func (*User) GetSetting ¶ added in v0.5.6
func (*User) GetSettings ¶ added in v0.5.6
func (*User) SafeContext ¶ added in v0.5.6
func (*User) UnsafeContext ¶ added in v0.5.6
Click to show internal directories.
Click to hide internal directories.