store

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore added in v1.2.0

type Datastore struct {
	Backend Storer
}

func (*Datastore) CheckAllBundleContentsAreApproved added in v1.2.0

func (ds *Datastore) CheckAllBundleContentsAreApproved(ctx context.Context, bundleID string) (bool, error)

func (*Datastore) CheckBundleExists added in v1.3.0

func (ds *Datastore) CheckBundleExists(ctx context.Context, bundleID string) (bool, error)

func (*Datastore) CheckContentItemExistsByDatasetEditionVersion added in v1.3.0

func (ds *Datastore) CheckContentItemExistsByDatasetEditionVersion(ctx context.Context, datasetID, editionID string, versionID int) (bool, error)

func (*Datastore) CreateBundleEvent added in v1.3.0

func (ds *Datastore) CreateBundleEvent(ctx context.Context, event *models.Event) error

func (*Datastore) CreateContentItem added in v1.3.0

func (ds *Datastore) CreateContentItem(ctx context.Context, contentItem *models.ContentItem) error

func (*Datastore) GetBundle added in v1.3.0

func (ds *Datastore) GetBundle(ctx context.Context, bundleID string) (*models.Bundle, error)

func (*Datastore) ListBundleEvents added in v1.3.0

func (ds *Datastore) ListBundleEvents(ctx context.Context, offset, limit int, bundleID string, after, before *time.Time) ([]*models.Event, int, error)

func (*Datastore) ListBundles added in v1.2.0

func (ds *Datastore) ListBundles(ctx context.Context, offset, limit int, filters *filters.BundleFilters) ([]*models.Bundle, int, error)

func (*Datastore) UpdateBundleETag added in v1.3.0

func (ds *Datastore) UpdateBundleETag(ctx context.Context, bundleID, email string) (*models.Bundle, error)

type MongoDB

type MongoDB interface {
	Close(context.Context) error
	Checker(context.Context, *healthcheck.CheckState) error
	// contains filtered or unexported methods
}

MongoDB represents all the required methods from mongo DB

type Storer

type Storer interface {
	// contains filtered or unexported methods
}

Storer represents basic data access via Get, Remove and Upsert methods, abstracting it from mongoDB or graphDB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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