remote

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	proto.CasbinClient
}

Client casbin客户端实现

func NewClient

func NewClient(cfg *conf.Configuration) (*Client, error)

type GrpcEnforcer

type GrpcEnforcer struct {
	casbin.IEnforcer
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL