MCPcopy Index your code
hub / github.com/Permify/permify / Check

Interface Check

internal/invoke/invoke.go:32–34  ·  view source on GitHub ↗

Check is an interface that defines a method for checking permissions. It requires an implementation of InvokeCheck that takes a context and a PermissionCheckRequest, and returns a PermissionCheckResponse and an error if any.

Source from the content-addressed store, hash-verified

30// It requires an implementation of InvokeCheck that takes a context and a PermissionCheckRequest,
31// and returns a PermissionCheckResponse and an error if any.
32type Check interface {
33 Check(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error)
34}
35
36// Expand is an interface that defines a method for expanding permissions.
37// It requires an implementation of InvokeExpand that takes a context and a PermissionExpandRequest,

Callers 8

notion_test.goFile · 0.65
health_test.goFile · 0.65
gc_test.goFile · 0.65
CheckMethod · 0.65
BulkCheckMethod · 0.65
CheckMethod · 0.65

Implementers 11

permissionClientpkg/pb/base/v1/service_grpc.pb.go
UnimplementedPermissionServerpkg/pb/base/v1/service_grpc.pb.go
PermissionServerinternal/servers/permission_server.go
HealthServerinternal/servers/health_server.go
DirectInvokerinternal/invoke/invoke.go
CheckEngineinternal/engines/check.go
mockCheckEngineinternal/engines/bulk_test.go
errorCheckEngineinternal/engines/bulk_test.go
MockCheckerinternal/engines/bulk_benchmark_test.g
CheckEngineWithCacheinternal/engines/cache/check.go
Balancerinternal/engines/balancer/balancer.go

Calls

no outgoing calls

Tested by

no test coverage detected