Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccess ¶
CheckAccess checks whether the request access is valid or not, which returns error only when regexp pattern is invalid
func RegisterAccess ¶
func RegisterAccess(role Role, accessList AccessList)
RegisterAccess registers new access list for a specified role
Types ¶
type AccessList ¶
type AccessList []Access
Click to show internal directories.
Click to hide internal directories.