Documentation ¶
Overview ¶
The permission utility package defines primitives that allow to check a Subject for a permission.
E.g. A player's permission Func can be setup on join by subscribing to proxy.PermissionsSetupEvent.
Note: This is a simple package only allowing limited complexity of permission checking and may not suffice everyone's requirements. Therefore Gate also makes no assumptions on whether this package is used or not. Plugins may use their own authorization system internally without a touch on this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subject ¶
type Subject interface { HasPermission(permission string) bool // Equal to PermissionValue(...).Bool() PermissionValue(permission string) TriState }
Subject is a permission holder like a player.
Click to show internal directories.
Click to hide internal directories.