services

package
v0.0.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: AGPL-3.0 Imports: 8 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 *base.Subject, action string, entity *base.Entity, version string, d int32) (response commands.CheckResponse, err error)
	Expand(ctx context.Context, entity *base.Entity, action string, version string) (response commands.ExpandResponse, err error)
	LookupQuery(ctx context.Context, entityType string, subject *base.Subject, action string, version string) (response commands.LookupQueryResponse, err error)
}

IPermissionService -

type IRelationshipService

type IRelationshipService interface {
	ReadRelationships(ctx context.Context, filter *base.TupleFilter) (tuple.ITupleCollection, error)
	WriteRelationship(ctx context.Context, tuple *base.Tuple, version string) error
	DeleteRelationship(ctx context.Context, tuple *base.Tuple) error
}

IRelationshipService -

type ISchemaService

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

ISchemaService -

type PermissionService

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

PermissionService -

func (*PermissionService) Check

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

Check -

func (*PermissionService) Expand

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

Expand -

func (*PermissionService) LookupQuery

func (service *PermissionService) LookupQuery(ctx context.Context, entityType string, subject *base.Subject, action string, version string) (response commands.LookupQueryResponse, err 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 *base.Tuple) error

DeleteRelationship -

func (*RelationshipService) ReadRelationships

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

ReadRelationships -

func (*RelationshipService) WriteRelationship

func (service *RelationshipService) WriteRelationship(ctx context.Context, tup *base.Tuple, version string) (err 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 error)

Lookup -

Jump to

Keyboard shortcuts

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