Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authz ¶
type Authz struct {
// Use the synchronous authorizer of Casbin
*casbin.SyncedEnforcer
}
Authz defines an authorization engine, providing the authorization functionality.
type Option ¶
type Option func(*authzConfig)
The Option defines a function option type, which is used to customize the behavior of NewAuthz.
func DefaultOptions ¶
func DefaultOptions() []Option
DefaultOptions returns the default options for the authorization engine.
func WithAclModel ¶
WithAclModel sets the ACL model for the authorization engine.
func WithAutoLoadPolicyTime ¶
WithAutoLoadPolicyTime sets the auto-load policy time for the authorization engine.
Click to show internal directories.
Click to hide internal directories.