Documentation ¶
Index ¶
- type EntityConfigRepository
- func (r *EntityConfigRepository) All(ctx context.Context, version string) (configs entities.EntityConfigs, err error)
- func (r *EntityConfigRepository) Clear(ctx context.Context, version string) error
- func (r *EntityConfigRepository) Migrate() (err error)
- func (r *EntityConfigRepository) Read(ctx context.Context, name string, version string) (config entities.EntityConfig, err error)
- func (r *EntityConfigRepository) Write(ctx context.Context, configs entities.EntityConfigs, version string) (err error)
- type RelationTupleRepository
- func (r *RelationTupleRepository) Delete(ctx context.Context, tuples entities.RelationTuples) error
- func (r *RelationTupleRepository) Migrate() (err error)
- func (r *RelationTupleRepository) QueryTuples(ctx context.Context, entity string, objectID string, relation string) (tuples entities.RelationTuples, err error)
- func (r *RelationTupleRepository) Read(ctx context.Context, filter filters.RelationTupleFilter) (tuples entities.RelationTuples, err error)
- func (r *RelationTupleRepository) Write(ctx context.Context, tuples entities.RelationTuples) (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, version string) (configs entities.EntityConfigs, err error)
All -
func (*EntityConfigRepository) Clear ¶
func (r *EntityConfigRepository) Clear(ctx context.Context, version string) error
Clear -
func (*EntityConfigRepository) Migrate ¶
func (r *EntityConfigRepository) Migrate() (err error)
Migrate -
func (*EntityConfigRepository) Read ¶
func (r *EntityConfigRepository) Read(ctx context.Context, name string, version string) (config entities.EntityConfig, err error)
Read -
func (*EntityConfigRepository) Write ¶
func (r *EntityConfigRepository) Write(ctx context.Context, configs entities.EntityConfigs, version string) (err 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) 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.RelationTuples, err error)
QueryTuples -
func (*RelationTupleRepository) Read ¶
func (r *RelationTupleRepository) Read(ctx context.Context, filter filters.RelationTupleFilter) (tuples entities.RelationTuples, err error)
Read -.
func (*RelationTupleRepository) Write ¶
func (r *RelationTupleRepository) Write(ctx context.Context, tuples entities.RelationTuples) (err error)
Write -.
Click to show internal directories.
Click to hide internal directories.