Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authentication ¶
type Authentication interface { AddWhitelist(path string, method string) RemoveWhitelist(path, method string) IsWhitelist(path string, method string) bool Auth(role, path, method string) bool GetRole(ctx context.Context) (string, error) Enforce() *casbin.Enforcer IsSkipRole(role string) bool }
func Instance ¶
func Instance() Authentication
Click to show internal directories.
Click to hide internal directories.