Documentation ¶
Index ¶
- type EntityConfigRepository
- func (r *EntityConfigRepository) All(ctx context.Context) (configs []entities.EntityConfig, err error)
- func (r *EntityConfigRepository) Clear(ctx context.Context) error
- func (r *EntityConfigRepository) Migrate() (err error)
- func (r *EntityConfigRepository) Replace(ctx context.Context, configs []entities.EntityConfig) (err error)
- type RelationTupleRepository
- func (r *RelationTupleRepository) Delete(ctx context.Context, tuples []entities.RelationTuple) error
- func (r *RelationTupleRepository) Migrate() (err error)
- func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, objectID string, relation string) (tuples []entities.RelationTuple, err error)
- func (r *RelationTupleRepository) Write(ctx context.Context, tuples []entities.RelationTuple) (err 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 *postgres.Postgres) *EntityConfigRepository
NewEntityConfigRepository -.
func (*EntityConfigRepository) All ¶
func (r *EntityConfigRepository) All(ctx context.Context) (configs []entities.EntityConfig, err error)
All -
func (*EntityConfigRepository) Clear ¶
func (r *EntityConfigRepository) Clear(ctx context.Context) error
Clear -
func (*EntityConfigRepository) Migrate ¶
func (r *EntityConfigRepository) Migrate() (err error)
Migrate -
func (*EntityConfigRepository) Replace ¶
func (r *EntityConfigRepository) Replace(ctx context.Context, configs []entities.EntityConfig) (err error)
Replace -
type RelationTupleRepository ¶
RelationTupleRepository -.
func NewRelationTupleRepository ¶
func NewRelationTupleRepository(pg *db.Postgres) *RelationTupleRepository
NewRelationTupleRepository -.
func (*RelationTupleRepository) Delete ¶
func (r *RelationTupleRepository) Delete(ctx context.Context, tuples []entities.RelationTuple) error
Delete -.
func (*RelationTupleRepository) Migrate ¶
func (r *RelationTupleRepository) Migrate() (err error)
Migrate -
func (*RelationTupleRepository) QueryTuples ¶
func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, objectID string, relation string) (tuples []entities.RelationTuple, err error)
QueryTuples -
func (*RelationTupleRepository) Write ¶
func (r *RelationTupleRepository) Write(ctx context.Context, tuples []entities.RelationTuple) (err error)
Write -.
Click to show internal directories.
Click to hide internal directories.