Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer is a wrapper for a casbin enforcer.
func New ¶
func New(model, policy string) *Authorizer
New instantiates a new authorizer using the model and policy specified in the files stored in the given model and policy file paths.
Click to show internal directories.
Click to hide internal directories.