storeDEPRECATED

package
v1.20.1-dexcom-api-val... Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSession

type DataSession interface {
	store.Session

	GetDatasetsForUserByID(ctx context.Context, userID string, filter *Filter, pagination *page.Pagination) ([]*upload.Upload, error)
	GetDatasetByID(ctx context.Context, datasetID string) (*upload.Upload, error)
	CreateDataset(ctx context.Context, dataset *upload.Upload) error
	UpdateDataSet(ctx context.Context, id string, update *data.DataSetUpdate) (*upload.Upload, error)
	DeleteDataset(ctx context.Context, dataset *upload.Upload) error
	CreateDatasetData(ctx context.Context, dataset *upload.Upload, datasetData []data.Datum) error
	ActivateDatasetData(ctx context.Context, dataset *upload.Upload) error
	ArchiveDeviceDataUsingHashesFromDataset(ctx context.Context, dataset *upload.Upload) error
	UnarchiveDeviceDataUsingHashesFromDataset(ctx context.Context, dataset *upload.Upload) error
	DeleteOtherDatasetData(ctx context.Context, dataset *upload.Upload) error
	DestroyDataForUserByID(ctx context.Context, userID string) error

	GetDataSet(ctx context.Context, id string) (*data.DataSet, error)
}

type Filter

type Filter struct {
	Deleted bool
}

func NewFilter

func NewFilter() *Filter

func (*Filter) Validate

func (f *Filter) Validate() error

type Store

type Store interface {
	store.Store

	NewDataSession() DataSession
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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