repositories

package
v0.0.0-alpha3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IEntityConfigRepository

type IEntityConfigRepository interface {
	Migratable
	All(ctx context.Context, version string) (configs entities.EntityConfigs, err error)
	Read(ctx context.Context, name string, version string) (config entities.EntityConfig, err error)
	Write(ctx context.Context, configs entities.EntityConfigs, version string) (err error)
	Clear(ctx context.Context, version string) (err error)
}

IEntityConfigRepository -

func EntityConfigFactory

func EntityConfigFactory(db database.Database) (repo IEntityConfigRepository)

EntityConfigFactory -

type IRelationTupleRepository

type IRelationTupleRepository interface {
	Migratable
	QueryTuples(ctx context.Context, namespace string, objectID string, relation string) (entities.RelationTuples, error)
	Read(ctx context.Context, filter filters.RelationTupleFilter) (entities.RelationTuples, error)
	Write(context.Context, entities.RelationTuples) error
	Delete(context.Context, entities.RelationTuples) error
}

IRelationTupleRepository -

func RelationTupleFactory

func RelationTupleFactory(db database.Database) (repo IRelationTupleRepository)

RelationTupleFactory -

type Migratable

type Migratable interface {
	Migrate() error
}

Migratable -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL