Versions in this module Expand all Collapse all v2 v2.1.1 Dec 9, 2025 v2.0.0 Jun 18, 2023 Changes in this version + const DefaultCollectionPrefix + const PluginMongoDB + func New(ctx context.Context, config cmap.CustomMap) (storageTY.Plugin, error) + type Client struct + Client *mongoDriver.Client + Config Config + func (c *Client) ClearDatabase() error + func (c *Client) Close() error + func (c *Client) Count(entityName string, filters []storageTY.Filter) (int64, error) + func (c *Client) Delete(entityName string, filters []storageTY.Filter) (int64, error) + func (c *Client) Find(entityName string, out interface{}, filters []storageTY.Filter, ...) (*storageTY.Result, error) + func (c *Client) FindOne(entityName string, out interface{}, filters []storageTY.Filter) error + func (c *Client) Insert(entityName string, data interface{}) error + func (c *Client) Pause() error + func (c *Client) Ping() error + func (c *Client) Resume() error + func (c *Client) Update(entityName string, data interface{}, filters []storageTY.Filter) error + func (c *Client) Upsert(entityName string, data interface{}, filters []storageTY.Filter) error + func (s *Client) DoStartupImport() (bool, string, string) + func (s *Client) Name() string + type Config struct + CollectionPrefix string + Database string + Name string + URI string