development

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, service services.IPermissionService, subject *v1.Subject, action string, entity *v1.Entity, version, snapToken string) (res *v1.PermissionCheckResponse, err error)

Check - Creates new permission check request

func DeleteTuple

func DeleteTuple(ctx context.Context, service services.IRelationshipService, filter *v1.TupleFilter) (token token.EncodedSnapToken, err error)

DeleteTuple - Creates new delete relation tuple request

func LookupEntity

func LookupEntity(ctx context.Context, service services.IPermissionService, subject *v1.Subject, permission, entityType, version, snapToken string) (res *v1.PermissionLookupEntityResponse, err error)

LookupEntity -

func ReadSchema

func ReadSchema(ctx context.Context, service services.ISchemaService, version string) (sch *v1.SchemaDefinition, err error)

ReadSchema - Creates new read schema request

func ReadTuple

func ReadTuple(ctx context.Context, service services.IRelationshipService, filter *v1.TupleFilter, snap string) (tuples *database.TupleCollection, continuousToken database.EncodedContinuousToken, err error)

ReadTuple - Creates new read API request

func WriteSchema

func WriteSchema(ctx context.Context, service services.ISchemaService, schema string) (version string, err error)

WriteSchema - Creates new write schema request

func WriteTuple

func WriteTuple(ctx context.Context, service services.IRelationshipService, tuples []*v1.Tuple, version string) (token token.EncodedSnapToken, err error)

WriteTuple - Creates new write API request

Types

type Container

Container - Structure for container instance

func NewContainer

func NewContainer() *Container

NewContainer - Creates new container instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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