mongo

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	*mongo.Session
}

func (*Session) ActivateDatasetData added in v1.0.0

func (s *Session) ActivateDatasetData(dataset *upload.Upload) error

func (*Session) ArchiveDeviceDataUsingHashesFromDataset added in v1.9.0

func (s *Session) ArchiveDeviceDataUsingHashesFromDataset(dataset *upload.Upload) error

func (*Session) CreateDataset

func (s *Session) CreateDataset(dataset *upload.Upload) error

func (*Session) CreateDatasetData

func (s *Session) CreateDatasetData(dataset *upload.Upload, datasetData []data.Datum) error

func (*Session) DeleteDataset added in v0.1.0

func (s *Session) DeleteDataset(dataset *upload.Upload) error

func (*Session) DeleteOtherDatasetData added in v1.0.0

func (s *Session) DeleteOtherDatasetData(dataset *upload.Upload) error

func (*Session) DestroyDataForUserByID added in v1.2.0

func (s *Session) DestroyDataForUserByID(userID string) error

func (*Session) GetDatasetByID added in v1.2.0

func (s *Session) GetDatasetByID(datasetID string) (*upload.Upload, error)

func (*Session) GetDatasetsForUserByID added in v1.2.0

func (s *Session) GetDatasetsForUserByID(userID string, filter *store.Filter, pagination *store.Pagination) ([]*upload.Upload, error)

func (*Session) UnarchiveDeviceDataUsingHashesFromDataset added in v1.9.0

func (s *Session) UnarchiveDeviceDataUsingHashesFromDataset(dataset *upload.Upload) error

func (*Session) UpdateDataset

func (s *Session) UpdateDataset(dataset *upload.Upload) error

type Store

type Store struct {
	*mongo.Store
}

func New

func New(logger log.Logger, config *mongo.Config) (*Store, error)

func (*Store) NewSession

func (s *Store) NewSession(logger log.Logger) store.Session

Jump to

Keyboard shortcuts

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