Documentation
¶
Index ¶
- type IPermissionService
- type IRelationshipService
- type ISchemaService
- type PermissionService
- func (service *PermissionService) Check(ctx context.Context, subject tuple.Subject, action string, entity tuple.Entity, ...) (response commands.CheckResponse, err error)
- func (service *PermissionService) Expand(ctx context.Context, entity tuple.Entity, action string, version string) (response commands.ExpandResponse, err error)
- type RelationshipService
- func (service *RelationshipService) DeleteRelationship(ctx context.Context, entities []e.RelationTuple) error
- func (service *RelationshipService) ReadRelationships(ctx context.Context, filter filters.RelationTupleFilter) ([]e.RelationTuple, error)
- func (service *RelationshipService) WriteRelationship(ctx context.Context, entities []e.RelationTuple) error
- type SchemaService
- func (service *SchemaService) All(ctx context.Context, version string) (sch schema.Schema, err error)
- func (service *SchemaService) Read(ctx context.Context, name string, version string) (sch schema.Schema, err error)
- func (service *SchemaService) Write(ctx context.Context, configs e.EntityConfigs) (version string, err error)
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 NewPermissionService ¶
func NewPermissionService(cc commands.ICheckCommand, ec commands.IExpandCommand, en repositories.IEntityConfigRepository) *PermissionService
NewPermissionService -
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 -
Click to show internal directories.
Click to hide internal directories.