mongo

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceSession added in v1.20.0

type DataSourceSession struct {
	*mongo.Session
}

func (*DataSourceSession) CreateUserDataSource added in v1.20.0

func (d *DataSourceSession) CreateUserDataSource(ctx context.Context, userID string, create *data.DataSourceCreate) (*data.DataSource, error)

func (*DataSourceSession) DeleteDataSource added in v1.20.0

func (d *DataSourceSession) DeleteDataSource(ctx context.Context, id string) error

func (*DataSourceSession) EnsureIndexes added in v1.20.0

func (d *DataSourceSession) EnsureIndexes() error

func (*DataSourceSession) GetDataSource added in v1.20.0

func (d *DataSourceSession) GetDataSource(ctx context.Context, id string) (*data.DataSource, error)

func (*DataSourceSession) ListUserDataSources added in v1.20.0

func (d *DataSourceSession) ListUserDataSources(ctx context.Context, userID string, filter *data.DataSourceFilter, pagination *page.Pagination) (data.DataSources, error)

func (*DataSourceSession) UpdateDataSource added in v1.20.0

func (d *DataSourceSession) UpdateDataSource(ctx context.Context, id string, update *data.DataSourceUpdate) (*data.DataSource, error)

type Store

type Store struct {
	*mongo.Store
}

func NewStore added in v1.20.0

func NewStore(cfg *mongo.Config, lgr log.Logger) (*Store, error)

func (*Store) EnsureIndexes added in v1.20.0

func (s *Store) EnsureIndexes() error

func (*Store) NewDataSourceSession added in v1.20.0

func (s *Store) NewDataSourceSession() store.DataSourceSession

Jump to

Keyboard shortcuts

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