Documentation
¶
Index ¶
Constants ¶
View Source
const ( Order = 1 << iota Book User All = 1<<iota - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivilegeSet ¶
type PrivilegeSet uint64
func NewByStr ¶
func NewByStr(privileges ...string) PrivilegeSet
func (PrivilegeSet) Has ¶
func (privileges PrivilegeSet) Has(privilege PrivilegeSet) bool
func (PrivilegeSet) HasPrivilege ¶
func (privileges PrivilegeSet) HasPrivilege(privilege string) bool
Click to show internal directories.
Click to hide internal directories.