Casbin

Casbin

  • 文档
  • API
  • 编辑器
  • JetBrains 插件
  • Dashboard
  • 论坛
  • OA
  • 趋势
  • 云服务
  • 帮助
  • 博客
  • Languages icon中文
    • English
    • 한국어
    • 参与翻译
  • GitHub

›扩充功能

基础知识

  • 概述
  • 开始使用
  • 工作原理
  • 教程

Model

  • 支持的Models
  • Model语法
  • 函数
  • 基于角色的访问控制
  • 域内RBAC
  • ABAC

存储

  • Model存储
  • Policy存储
  • 政策子集加载

扩充功能

  • 适配器
  • 观察者
  • 调度器
  • 角色管理器
  • 中间件

API

  • 管理 API
  • RBAC API

高级用法。

  • 多线程
  • 基准测试

管理

  • 管理员门户
  • Casbin 服务
  • 日志 & 错误处理
  • 在线编辑器
  • Frontend Usage

更多

  • 本项目使用者
  • 隐私政策
  • 服务条款
Translate

调度器

Dispatcher provide a way to synchronize incremental changes of policy. It should be based on consistency algorithms such as raft to ensure the consistency of all enforcer instances. Through dispatcher users can easily establish distributed clusters.

The dispatcher's method is divided into two parts. The first is the method combined with casbin. These methods should be called inside casbin. Users can use the more complete api provided by casbin itself.

The other part is the method defined by the dispatcher itself, including the dispatcher initialization method, and different functions provided by different algorithms, such as dynamic membership, config changes etc.

note

we hope dispatcher just ensure the consistency of Casbin enforcer at runtime. So if the policy is inconsistent when initialization, the dispatcher will not work properly. Users need to ensure that the state of all instances is consistent before using dispatcher.

A complete list of Casbin dispatchers is provided as below. Any 3rd-party contribution on a new dispatcher is welcomed, please inform us and we will put it in this list:)

Go
DispatcherTypeAuthorDescription
Etcd Raft DispatcherraftCasbinDispatcher based on etcd/raft
← 观察者角色管理器 →
Casbin
Docs
Getting StartedManagement APIRBAC APIMiddlewares
Community
Who's using Casbin?ForumStack OverflowProject Chat
Casbin          jCasbin
Node-Casbin   PHP-CasbinPyCasbin          Casbin.NETCasbin-CPP        Casbin-RS
Follow @CasbinNews
Copyright © 2021 Casbin contributors.