Documentation ¶
Index ¶
- func NewPermissionsServer(ds datastore.Datastore, nsm namespace.Manager, dispatch dispatch.Dispatcher, ...) v1.PermissionsServiceServer
- func NewSchemaServer(ds datastore.Datastore) v1.SchemaServiceServer
- func NewWatchServer(ds datastore.Datastore) v1.WatchServiceServer
- func RunForTesting(t *testing.T, ds datastore.Datastore, nsm namespace.Manager, ...) (v1.PermissionsServiceClient, v1.SchemaServiceClient)
- func TranslateRelationshipTree(tree *v1.PermissionRelationshipTree) *v0.RelationTupleTreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPermissionsServer ¶
func NewPermissionsServer(ds datastore.Datastore, nsm namespace.Manager, dispatch dispatch.Dispatcher, defaultDepth uint32, ) v1.PermissionsServiceServer
NewPermissionsServer creates a PermissionsServiceServer instance.
func NewSchemaServer ¶
func NewSchemaServer(ds datastore.Datastore) v1.SchemaServiceServer
NewSchemaServer creates a SchemaServiceServer instance.
func NewWatchServer ¶ added in v1.2.0
func NewWatchServer(ds datastore.Datastore) v1.WatchServiceServer
NewWatchServer creates an instance of the watch server.
func RunForTesting ¶ added in v0.0.3
func RunForTesting(t *testing.T, ds datastore.Datastore, nsm namespace.Manager, dispatch dispatch.Dispatcher, defaultDepth uint32) (v1.PermissionsServiceClient, v1.SchemaServiceClient)
RunForTesting runs a real gRPC instance of the V1 API and returns a client for testing.
func TranslateRelationshipTree ¶ added in v1.2.0
func TranslateRelationshipTree(tree *v1.PermissionRelationshipTree) *v0.RelationTupleTreeNode
TranslateRelationshipTree translates a V1 PermissionRelationshipTree into a V0 RelationTupleTreeNode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.