Storage to uuids

This commit is contained in:
breel
2020-08-07 16:15:52 -06:00
parent 953d2d1365
commit 304956da74
17 changed files with 862 additions and 186 deletions

View File

@@ -46,6 +46,10 @@ func (rlg RateLimitedGraph) Insert(ctx context.Context, namespace string, one en
return rlg.g.Insert(ctx, namespace, one)
}
func (rlg RateLimitedGraph) Get(ctx context.Context, namespace, id string) (entity.One, error) {
return rlg.g.Get(ctx, namespace, id)
}
func (rlg RateLimitedGraph) List(ctx context.Context, namespace string, from ...string) ([]entity.One, error) {
return rlg.g.List(ctx, namespace, from...)
}
@@ -58,6 +62,6 @@ func (rlg RateLimitedGraph) Search(ctx context.Context, namespace string, nameCo
return rlg.g.Search(ctx, namespace, nameContains)
}
func (rlg RateLimitedGraph) Update(ctx context.Context, namespace string, one entity.One, modify interface{}) error {
func (rlg RateLimitedGraph) Update(ctx context.Context, namespace string, one, modify interface{}) error {
return rlg.g.Update(ctx, namespace, one, modify)
}