Documentation ¶
Index ¶
- type EntityConfigRepository
- func (r *EntityConfigRepository) All(ctx context.Context, version string) (entities.EntityConfigs, errors.Error)
- func (r *EntityConfigRepository) Migrate() errors.Error
- func (r *EntityConfigRepository) Read(ctx context.Context, name string, version string) (entities.EntityConfig, errors.Error)
- func (r *EntityConfigRepository) Write(ctx context.Context, configs entities.EntityConfigs, version string) errors.Error
- type RelationTupleRepository
- func (r *RelationTupleRepository) Delete(ctx context.Context, tuples entities.RelationTuples) errors.Error
- func (r *RelationTupleRepository) Migrate() errors.Error
- func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, entityID string, relation string) (entities.RelationTuples, errors.Error)
- func (r *RelationTupleRepository) Read(ctx context.Context, filter filters.RelationTupleFilter) (entities.RelationTuples, errors.Error)
- func (r *RelationTupleRepository) ReverseQueryTuples(ctx context.Context, entity string, relation string, subjectEntity string, ...) (entities.RelationTuples, errors.Error)
- func (r *RelationTupleRepository) Write(ctx context.Context, tuples entities.RelationTuples) errors.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityConfigRepository ¶
EntityConfigRepository -.
func NewEntityConfigRepository ¶
func NewEntityConfigRepository(pg *db.Postgres) *EntityConfigRepository
NewEntityConfigRepository -.
func (*EntityConfigRepository) All ¶
func (r *EntityConfigRepository) All(ctx context.Context, version string) (entities.EntityConfigs, errors.Error)
All -
func (*EntityConfigRepository) Migrate ¶
func (r *EntityConfigRepository) Migrate() errors.Error
Migrate -
func (*EntityConfigRepository) Read ¶
func (r *EntityConfigRepository) Read(ctx context.Context, name string, version string) (entities.EntityConfig, errors.Error)
Read -
func (*EntityConfigRepository) Write ¶
func (r *EntityConfigRepository) Write(ctx context.Context, configs entities.EntityConfigs, version string) errors.Error
Write -
type RelationTupleRepository ¶
RelationTupleRepository -.
func NewRelationTupleRepository ¶
func NewRelationTupleRepository(pg *db.Postgres) *RelationTupleRepository
NewRelationTupleRepository -.
func (*RelationTupleRepository) Delete ¶
func (r *RelationTupleRepository) Delete(ctx context.Context, tuples entities.RelationTuples) errors.Error
Delete -.
func (*RelationTupleRepository) Migrate ¶
func (r *RelationTupleRepository) Migrate() errors.Error
Migrate -
func (*RelationTupleRepository) QueryTuples ¶
func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, entityID string, relation string) (entities.RelationTuples, errors.Error)
QueryTuples -
func (*RelationTupleRepository) Read ¶
func (r *RelationTupleRepository) Read(ctx context.Context, filter filters.RelationTupleFilter) (entities.RelationTuples, errors.Error)
Read -.
func (*RelationTupleRepository) ReverseQueryTuples ¶
func (r *RelationTupleRepository) ReverseQueryTuples(ctx context.Context, entity string, relation string, subjectEntity string, subjectIDs []string, subjectRelation string) (entities.RelationTuples, errors.Error)
ReverseQueryTuples -
func (*RelationTupleRepository) Write ¶
func (r *RelationTupleRepository) Write(ctx context.Context, tuples entities.RelationTuples) errors.Error
Write -.
Click to show internal directories.
Click to hide internal directories.