services

package
v0.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: AGPL-3.0 Imports: 10 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 {
	Check(ctx context.Context, subject tuple.Subject, action string, entity tuple.Entity, version string, d int32) (response commands.CheckResponse, err errors.Error)
	Expand(ctx context.Context, entity tuple.Entity, action string, version string) (response commands.ExpandResponse, err errors.Error)
	LookupQuery(ctx context.Context, entityType string, subject tuple.Subject, action string, version string) (response commands.LookupQueryResponse, err errors.Error)
}

IPermissionService -

type IRelationshipService

type IRelationshipService interface {
	ReadRelationships(ctx context.Context, filter filters.RelationTupleFilter) ([]tuple.Tuple, errors.Error)
	WriteRelationship(ctx context.Context, tuple tuple.Tuple, version string) errors.Error
	DeleteRelationship(ctx context.Context, tuple tuple.Tuple) errors.Error
}

IRelationshipService -

type ISchemaService

type ISchemaService interface {
	Lookup(ctx context.Context, entityType string, relationNames []string, version string) (response commands.SchemaLookupResponse, err errors.Error)
}

ISchemaService -

type PermissionService

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

PermissionService -

func (*PermissionService) Check

func (service *PermissionService) Check(ctx context.Context, subject tuple.Subject, action string, entity tuple.Entity, version string, d int32) (response commands.CheckResponse, err errors.Error)

Check -

func (*PermissionService) Expand

func (service *PermissionService) Expand(ctx context.Context, entity tuple.Entity, action string, version string) (response commands.ExpandResponse, err errors.Error)

Expand -

func (*PermissionService) LookupQuery

func (service *PermissionService) LookupQuery(ctx context.Context, entityType string, subject tuple.Subject, action string, version string) (response commands.LookupQueryResponse, err errors.Error)

LookupQuery -

type RelationshipService

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

RelationshipService -

func NewRelationshipService

NewRelationshipService -

func (*RelationshipService) DeleteRelationship

func (service *RelationshipService) DeleteRelationship(ctx context.Context, tup tuple.Tuple) errors.Error

DeleteRelationship -

func (*RelationshipService) ReadRelationships

func (service *RelationshipService) ReadRelationships(ctx context.Context, filter filters.RelationTupleFilter) (tuples []tuple.Tuple, err errors.Error)

ReadRelationships -

func (*RelationshipService) WriteRelationship

func (service *RelationshipService) WriteRelationship(ctx context.Context, tup tuple.Tuple, version string) (err errors.Error)

WriteRelationship -

type SchemaService

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

SchemaService -

func NewSchemaService

NewSchemaService -

func (*SchemaService) Lookup

func (service *SchemaService) Lookup(ctx context.Context, entityType string, relations []string, version string) (response commands.SchemaLookupResponse, err errors.Error)

Lookup -

Jump to

Keyboard shortcuts

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