mongo_data_source

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = plugin.Plugin

Functions

func ConfigureForEnv

func ConfigureForEnv(env string, cb func(c *config.Configuration) *config.Configuration)

ConfigureForEnv sets the config for the plugin for the specified environment.

func New

func New(collection string) data_source.DataSource

Types

type MongoDataSource

type MongoDataSource struct {
	// contains filtered or unexported fields
}

func (MongoDataSource) All

func (m MongoDataSource) All() (map[string]map[string]interface{}, error)

func (MongoDataSource) Count

func (m MongoDataSource) Count(search map[string]interface{}) (int64, error)

func (MongoDataSource) Delete

func (m MongoDataSource) Delete(id string) error

func (MongoDataSource) Find

func (m MongoDataSource) Find(search map[string]interface{}) (map[string]map[string]interface{}, error)

func (MongoDataSource) FindAndDelete

func (m MongoDataSource) FindAndDelete(search map[string]interface{}) error

func (MongoDataSource) FindOne

func (m MongoDataSource) FindOne(search map[string]interface{}) (string, map[string]interface{}, error)

func (MongoDataSource) Name

func (m MongoDataSource) Name() string

func (MongoDataSource) Save

func (m MongoDataSource) Save(entityId string, entity map[string]interface{}) error

func (MongoDataSource) Start

func (m MongoDataSource) Start() error

func (MongoDataSource) Stop

func (m MongoDataSource) Stop() error

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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