Documentation
¶
Index ¶
Constants ¶
View Source
const ModelConfig = `` /* 235-byte string literal not displayed */
ModelConfig defines the RBAC used.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CasbinController ¶ added in v2.31.0
CasbinController for access.
type Config ¶
type Config struct {
Policy string `yaml:"policy,omitempty" json:"policy,omitempty" toml:"policy,omitempty"`
}
Config for access.
type Controller ¶
type Controller interface {
// HasAccess checks if the user can access the system with action.
HasAccess(user, permission string) (bool, error)
}
Controller allows to check different kinds of accesses.
Click to show internal directories.
Click to hide internal directories.