Documentation ¶ Index ¶ Variables type Engine func NewEngine(ctx context.Context, repo repo.Repo, config *config.Config) *Engine func (am *Engine) LoadAllowList(ctx context.Context, tenantID string) error func (am *Engine) ReloadAllowList(ctx context.Context) error func (am *Engine) StartAuthzDataRefresh(ctx context.Context, interval time.Duration) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrLoadAuthzAllowList = errors.New("failed to load authz allow list for tenantID") ErrTenantNotExist = errors.New("tenantID does not exist") ErrEmptyTenantID = errors.New("tenantID cannot be empty") ) Functions ¶ This section is empty. Types ¶ type Engine ¶ type Engine struct { AuthzHandler *authz.Handler Auditor *auditor.Auditor // contains filtered or unexported fields } func NewEngine ¶ func NewEngine( ctx context.Context, repo repo.Repo, config *config.Config, ) *Engine func (*Engine) LoadAllowList ¶ func (am *Engine) LoadAllowList(ctx context.Context, tenantID string) error func (*Engine) ReloadAllowList ¶ func (am *Engine) ReloadAllowList(ctx context.Context) error func (*Engine) StartAuthzDataRefresh ¶ func (am *Engine) StartAuthzDataRefresh(ctx context.Context, interval time.Duration) StartAuthzDataRefresh starts a background goroutine that refreshes the authorization data periodically Source Files ¶ View all Source files engine.go Click to show internal directories. Click to hide internal directories.