mongo

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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) 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) DeactivateOtherDatasetDataAfterTime added in v1.5.0

func (s *Session) DeactivateOtherDatasetDataAfterTime(dataset *upload.Upload, afterTime string) 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) FindAllDatasetDataDeduplicatorHashesForDevice added in v1.5.0

func (s *Session) FindAllDatasetDataDeduplicatorHashesForDevice(userID string, deviceID string, queryHashes []string) ([]string, error)

func (*Session) FindEarliestDatasetDataTime added in v1.5.0

func (s *Session) FindEarliestDatasetDataTime(dataset *upload.Upload) (string, error)

func (*Session) FindPreviousActiveDatasetForDevice added in v1.5.0

func (s *Session) FindPreviousActiveDatasetForDevice(dataset *upload.Upload) (*upload.Upload, error)

func (*Session) GetDatasetByID added in v1.2.0

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

func (*Session) GetDatasetDataDeduplicatorHashes added in v1.5.0

func (s *Session) GetDatasetDataDeduplicatorHashes(dataset *upload.Upload, active bool) ([]string, 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) SetDatasetDataActiveUsingHashes added in v1.5.0

func (s *Session) SetDatasetDataActiveUsingHashes(dataset *upload.Upload, queryHashes []string, active bool) 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, error)

Jump to

Keyboard shortcuts

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