Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcEnforcer ¶
GrpcEnforcer 做为woocoo的验证实现支持,使用grpc调用远程服务获取底层数据. 注意,并没有实现所有接口, 需要特别注意使用方式.
func NewGrpcEnforcer ¶
func NewGrpcEnforcer(cfg *conf.Configuration) (ef *GrpcEnforcer, err error)
func (*GrpcEnforcer) EnableAutoSave ¶
func (e *GrpcEnforcer) EnableAutoSave(enable bool)
EnableAutoSave it local support, not need support
func (*GrpcEnforcer) Enforce ¶
func (e *GrpcEnforcer) Enforce(params ...any) (bool, error)
Enforce 实现casbin.IEnforcer接口
func (*GrpcEnforcer) GetImplicitPermissionsForUser ¶
func (e *GrpcEnforcer) GetImplicitPermissionsForUser(user string, domain ...string) ([][]string, error)
Click to show internal directories.
Click to hide internal directories.