Documentation ¶
Index ¶
- Constants
- type Rank
- func (r Rank) Add(other Rank)
- func (r Rank) AddBan(tag string) Rank
- func (r Rank) AddMod(tag string) Rank
- func (r Rank) AddOne(tag string) Rank
- func (r Rank) AddUser(tag string) Rank
- func (r Rank) Has(tag string) bool
- func (r Rank) HasBan(tag string) bool
- func (r Rank) HasMod(tag string) bool
- func (r Rank) HasUser(tag string) bool
- func (r Rank) Intersect(other Rank) Rank
- func (r Rank) Len() int
- func (r Rank) Remove(other Rank)
- func (r Rank) Stringify() string
- func (r Rank) ToSlice() []string
Constants ¶
View Source
const ( TagUser = "user" TagUserPrefix = "usr" TagBanPrefix = "ban" TagModPrefix = "mod" TagAdmin = "admin" TagSystem = "system" )
Tags for user rank
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rank ¶
type Rank map[string]struct{}
Rank represents the set of all user auth tags
func FromStringGroup ¶
FromStringGroup creates a new Group Rank from a string
func FromStringUser ¶
FromStringUser creates a new User Rank from a string
Click to show internal directories.
Click to hide internal directories.