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 errors.Error)
- func (service *PermissionService) Expand(ctx context.Context, entity tuple.Entity, action string, version string) (response commands.ExpandResponse, err errors.Error)
- func (service *PermissionService) LookupQuery(ctx context.Context, entityType string, subject tuple.Subject, action string, ...) (response commands.LookupQueryResponse, err errors.Error)
- type RelationshipService
- func (service *RelationshipService) DeleteRelationship(ctx context.Context, tup tuple.Tuple) errors.Error
- func (service *RelationshipService) ReadRelationships(ctx context.Context, filter filters.RelationTupleFilter) (tuples []tuple.Tuple, err errors.Error)
- func (service *RelationshipService) WriteRelationship(ctx context.Context, tup tuple.Tuple, version string) (err errors.Error)
- type SchemaService
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 NewPermissionService ¶
func NewPermissionService(cc commands.ICheckCommand, ec commands.IExpandCommand, lq commands.ILookupQueryCommand, en managers.IEntityConfigManager) *PermissionService
NewPermissionService -
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 ¶
func NewRelationshipService(rt repositories.IRelationTupleRepository, mn managers.IEntityConfigManager) *RelationshipService
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 ¶
func NewSchemaService(sc commands.ISchemaLookupCommand, en managers.IEntityConfigManager) *SchemaService
NewSchemaService -
Click to show internal directories.
Click to hide internal directories.