mongo

package
v0.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityConfigRepository

type EntityConfigRepository struct {
	Database *db.Mongo
}

EntityConfigRepository -.

func NewEntityConfigRepository

func NewEntityConfigRepository(mn *db.Mongo) *EntityConfigRepository

NewEntityConfigRepository -.

func (*EntityConfigRepository) All

func (r *EntityConfigRepository) All(ctx context.Context) (configs []entities.EntityConfig, err error)

All -

func (*EntityConfigRepository) Clear

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

type RelationTupleRepository struct {
	Database *db.Mongo
}

RelationTupleRepository -.

func NewRelationTupleRepository

func NewRelationTupleRepository(mn *db.Mongo) *RelationTupleRepository

NewRelationTupleRepository -.

func (*RelationTupleRepository) Delete

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 -.

Jump to

Keyboard shortcuts

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