services

package
v0.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.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 error)
	Expand(ctx context.Context, entity tuple.Entity, action string, version string) (response commands.ExpandResponse, err error)
}

IPermissionService -

type IRelationshipService

type IRelationshipService interface {
	ReadRelationships(ctx context.Context, filter filters.RelationTupleFilter) ([]e.RelationTuple, error)
	WriteRelationship(ctx context.Context, entities []e.RelationTuple) error
	DeleteRelationship(ctx context.Context, entities []e.RelationTuple) error
}

IRelationshipService -

type ISchemaService

type ISchemaService interface {
	All(ctx context.Context, version string) (sch schema.Schema, err error)
	Read(ctx context.Context, name string, version string) (sch schema.Schema, err error)
	Write(ctx context.Context, configs entities.EntityConfigs) (version string, 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 tuple.Subject, action string, entity tuple.Entity, version string, d int32) (response commands.CheckResponse, err error)

Check -

func (*PermissionService) Expand

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

Expand -

type RelationshipService

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

RelationshipService -

func NewRelationshipService

func NewRelationshipService(repo repositories.IRelationTupleRepository) *RelationshipService

NewRelationshipService -

func (*RelationshipService) DeleteRelationship

func (service *RelationshipService) DeleteRelationship(ctx context.Context, entities []e.RelationTuple) error

DeleteRelationship -

func (*RelationshipService) ReadRelationships

func (service *RelationshipService) ReadRelationships(ctx context.Context, filter filters.RelationTupleFilter) ([]e.RelationTuple, error)

ReadRelationships -

func (*RelationshipService) WriteRelationship

func (service *RelationshipService) WriteRelationship(ctx context.Context, entities []e.RelationTuple) error

WriteRelationship -

type SchemaService

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

SchemaService -

func NewSchemaService

func NewSchemaService(repo repositories.IEntityConfigRepository) *SchemaService

NewSchemaService -

func (*SchemaService) All

func (service *SchemaService) All(ctx context.Context, version string) (sch schema.Schema, err error)

All -

func (*SchemaService) Read

func (service *SchemaService) Read(ctx context.Context, name string, version string) (sch schema.Schema, err error)

Read -

func (*SchemaService) Write

func (service *SchemaService) Write(ctx context.Context, configs e.EntityConfigs) (version string, err error)

Replace -

Jump to

Keyboard shortcuts

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