41 lines
1.1 KiB
Go
41 lines
1.1 KiB
Go
|
package client
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/keegancsmith/rpc"
|
||
|
|
||
|
"forge.cadoles.com/arcad/edge/pkg/storage"
|
||
|
"forge.cadoles.com/arcad/edge/pkg/storage/filter"
|
||
|
)
|
||
|
|
||
|
type DocumentStore struct {
|
||
|
client *rpc.Client
|
||
|
}
|
||
|
|
||
|
// Delete implements storage.DocumentStore.
|
||
|
func (*DocumentStore) Delete(ctx context.Context, collection string, id storage.DocumentID) error {
|
||
|
panic("unimplemented")
|
||
|
}
|
||
|
|
||
|
// Get implements storage.DocumentStore.
|
||
|
func (*DocumentStore) Get(ctx context.Context, collection string, id storage.DocumentID) (storage.Document, error) {
|
||
|
panic("unimplemented")
|
||
|
}
|
||
|
|
||
|
// Query implements storage.DocumentStore.
|
||
|
func (*DocumentStore) Query(ctx context.Context, collection string, filter *filter.Filter, funcs ...storage.QueryOptionFunc) ([]storage.Document, error) {
|
||
|
panic("unimplemented")
|
||
|
}
|
||
|
|
||
|
// Upsert implements storage.DocumentStore.
|
||
|
func (*DocumentStore) Upsert(ctx context.Context, collection string, document storage.Document) (storage.Document, error) {
|
||
|
panic("unimplemented")
|
||
|
}
|
||
|
|
||
|
func NewDocumentStore(client *rpc.Client) *DocumentStore {
|
||
|
return &DocumentStore{client}
|
||
|
}
|
||
|
|
||
|
var _ storage.DocumentStore = &DocumentStore{}
|