Documentation
¶
Overview ¶
Package rules contains all rules related logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is the access control engine that checks if a given query is allowed by the rules.
func NewEngine ¶
func NewEngine(config *config.AccessControl) *Engine
NewEngine creates a new access control engine for the given access control configuration.
func (*Engine) Authorize ¶
Authorize checks if the given query is allowed by the engine's rules. The engine will return true if the query is allowed, false otherwise.
func (*Engine) UpdateConfig ¶
func (e *Engine) UpdateConfig(config *config.AccessControl)
UpdateConfig updates the engine's configuration with the given access control configuration.
Click to show internal directories.
Click to hide internal directories.