mongo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 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 {
	*commonMongo.Session
	// contains filtered or unexported fields
}

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) 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) GetDataset

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

func (*Session) GetDatasetsForUser added in v0.1.0

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

func (*Session) SetAgent added in v1.0.0

func (s *Session) SetAgent(agent store.Agent)

func (*Session) UpdateDataset

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

type Store

type Store struct {
	*commonMongo.Store
}

func New

func New(logger log.Logger, config *commonMongo.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