package
Version:
v0.0.0-...-294dc8c
Opens a new window with list of versions in this module.
Published: Apr 9, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
type Conn
-
func (d *Conn) Exists(ctx context.Context, collection string, filter string) (bool, error)
-
func (d *Conn) Filter(ctx context.Context, collection string, filter string, fields string) (string, error)
-
func (d *Conn) GetAll(ctx context.Context, collection string, fields string) (string, error)
Conn holds a connection to the datastoreReader service.
New returns a new connection to the datastore.
Exists does check if a collection object with given id exists.
Filter searches for the fitting model and also restricts to fields if provided
GetAll gets all models in the given collection as json object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.