Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ServiceID is the id of the datastore service
ServiceID = "io.stellarproject.atlas.datastore"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore interface { // ID returns the id of the datastore ID() string // Get gets the specified records by key Get(key string) ([]*api.Record, error) // Set sets the key to the records Set(key string, v []*api.Record) error // Search returns a list of records optionally filtered Search(key string, filters ...Filter) ([]*api.Record, error) // Delete deletes records by key Delete(key string) error // Close optionally closes any resources in use by the datastore Close() error // Export exports all data from the datastore Export() ([]byte, error) }
Datastore defines the datastore interface
Click to show internal directories.
Click to hide internal directories.