Documentation ¶
Index ¶
- func MetaToFilter(m interface{}) (bson.D, error)
- func New() plugin.BackendPlugin
- func StructToMap(m interface{}) (map[string]Field, error)
- type Field
- type PluginMongo
- func (p *PluginMongo) Cfg() plugin.Cfg
- func (p *PluginMongo) Delete(t string, m interface{}, retR interface{}) error
- func (p *PluginMongo) Get(t string, m interface{}, retR interface{}) error
- func (p *PluginMongo) List(t string, m interface{}, retM interface{}) error
- func (p *PluginMongo) Register() (plugin.Cfg, error)
- func (p *PluginMongo) Set(t string, r interface{}) error
- func (p *PluginMongo) Start(c *cli.Context) error
- func (p *PluginMongo) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetaToFilter ¶
func New ¶
func New() plugin.BackendPlugin
func StructToMap ¶
Types ¶
type PluginMongo ¶
type PluginMongo struct { plugin.BackendPlugin Cols map[string]*mongo.Collection Client *mongo.Client Database *mongo.Database }
func (*PluginMongo) Cfg ¶
func (p *PluginMongo) Cfg() plugin.Cfg
func (*PluginMongo) Delete ¶
func (p *PluginMongo) Delete(t string, m interface{}, retR interface{}) error
func (*PluginMongo) Get ¶
func (p *PluginMongo) Get(t string, m interface{}, retR interface{}) error
func (*PluginMongo) List ¶
func (p *PluginMongo) List(t string, m interface{}, retM interface{}) error
func (*PluginMongo) Set ¶
func (p *PluginMongo) Set(t string, r interface{}) error
func (*PluginMongo) Start ¶
func (p *PluginMongo) Start(c *cli.Context) error
func (*PluginMongo) Stop ¶
func (p *PluginMongo) Stop() error
Click to show internal directories.
Click to hide internal directories.