Documentation ¶
Index ¶
Constants ¶
View Source
const PrivKey key = 0
PrivKey is the index of the context map which indicates whether a service API has been called by a privileged user or not.
View Source
const TenantIDKey key = 1
TenantIDKey is the index of the context map which indicates the tenant id which is being used in the API call
Variables ¶
This section is empty.
Functions ¶
func GetPrivilege ¶
GetPrivilege returns the value of PrivKey
func GetTenantID ¶
GetTenantID returns the value of TenantIDKey
func SetPrivilege ¶
SetPrivilege is used to set the value of PrivKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.