datastorereader

package
v0.0.0-...-294dc8c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn holds a connection to the datastoreReader service.

func New

func New(readerURL *url.URL) *Conn

New returns a new connection to the datastore.

func (*Conn) Exists

func (d *Conn) Exists(ctx context.Context, collection string, filter string) (bool, error)

Exists does check if a collection object with given id exists.

func (*Conn) Filter

func (d *Conn) Filter(ctx context.Context, collection string, filter string, fields string) (string, error)

Filter searches for the fitting model and also restricts to fields if provided

func (*Conn) GetAll

func (d *Conn) GetAll(ctx context.Context, collection string, fields string) (string, error)

GetAll gets all models in the given collection as json object

Jump to

Keyboard shortcuts

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