services

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPermissionService

type IPermissionService interface {
	CheckPermissions(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error)
	ExpandPermissions(ctx context.Context, request *base.PermissionExpandRequest) (response *base.PermissionExpandResponse, err error)
	LookupSchema(ctx context.Context, request *base.PermissionLookupSchemaRequest) (response *base.PermissionLookupSchemaResponse, err error)
	LookupEntity(ctx context.Context, request *base.PermissionLookupEntityRequest) (response *base.PermissionLookupEntityResponse, err error)
	LookupEntityStream(ctx context.Context, request *base.PermissionLookupEntityRequest, server base.Permission_LookupEntityStreamServer) (err error)
}

IPermissionService -

type IRelationshipService

type IRelationshipService interface {
	ReadRelationships(ctx context.Context, filter *base.TupleFilter, token string) (database.ITupleCollection, error)
	WriteRelationships(ctx context.Context, tuples []*base.Tuple, version string) (token.EncodedSnapToken, error)
	DeleteRelationships(ctx context.Context, filter *base.TupleFilter) (token.EncodedSnapToken, error)
}

IRelationshipService -

type ISchemaService

type ISchemaService interface {
	ReadSchema(ctx context.Context, version string) (response *base.IndexedSchema, err error)
	WriteSchema(ctx context.Context, schema string) (version string, err error)
}

ISchemaService -

type PermissionService

type PermissionService struct {
	// contains filtered or unexported fields
}

PermissionService -

func (*PermissionService) CheckPermissions

func (service *PermissionService) CheckPermissions(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error)

CheckPermissions -

func (*PermissionService) ExpandPermissions

func (service *PermissionService) ExpandPermissions(ctx context.Context, request *base.PermissionExpandRequest) (response *base.PermissionExpandResponse, err error)

ExpandPermissions -

func (*PermissionService) LookupEntity

func (service *PermissionService) LookupEntity(ctx context.Context, request *base.PermissionLookupEntityRequest) (response *base.PermissionLookupEntityResponse, err error)

LookupEntity -

func (*PermissionService) LookupEntityStream

func (service *PermissionService) LookupEntityStream(ctx context.Context, request *base.PermissionLookupEntityRequest, server base.Permission_LookupEntityStreamServer) (err error)

LookupEntityStream -

func (*PermissionService) LookupSchema

func (service *PermissionService) LookupSchema(ctx context.Context, request *base.PermissionLookupSchemaRequest) (response *base.PermissionLookupSchemaResponse, err error)

LookupSchema -

type RelationshipService

type RelationshipService struct {
	// contains filtered or unexported fields
}

RelationshipService -

func (*RelationshipService) DeleteRelationships

func (service *RelationshipService) DeleteRelationships(ctx context.Context, filter *base.TupleFilter) (token.EncodedSnapToken, error)

DeleteRelationships -

func (*RelationshipService) ReadRelationships

func (service *RelationshipService) ReadRelationships(ctx context.Context, filter *base.TupleFilter, token string) (tuples database.ITupleCollection, err error)

ReadRelationships -

func (*RelationshipService) WriteRelationships

func (service *RelationshipService) WriteRelationships(ctx context.Context, tuples []*base.Tuple, version string) (token token.EncodedSnapToken, err error)

WriteRelationships -

type SchemaService

type SchemaService struct {
	// contains filtered or unexported fields
}

SchemaService -

func NewSchemaService

NewSchemaService -

func (*SchemaService) ReadSchema

func (service *SchemaService) ReadSchema(ctx context.Context, version string) (response *base.IndexedSchema, err error)

ReadSchema -

func (*SchemaService) WriteSchema

func (service *SchemaService) WriteSchema(ctx context.Context, schema string) (response string, err error)

WriteSchema -

Jump to

Keyboard shortcuts

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