README ¶ Rumors mongo plugin Installation go get github.com/rumorsflow/mongo License Distributed under MIT License, please see license file within the code for more details. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants type Config type Plugin func (p *Plugin) Init(cfg config.Configurer) error func (p *Plugin) Name() string func (p *Plugin) Provides() []any func (p *Plugin) ServiceMongoDB() *mongo.Database Constants ¶ View Source const PluginName = "mongo" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { URI string `mapstructure:"uri"` } type Plugin ¶ type Plugin struct { // contains filtered or unexported fields } func (*Plugin) Init ¶ func (p *Plugin) Init(cfg config.Configurer) error func (*Plugin) Name ¶ func (p *Plugin) Name() string Name returns user-friendly plugin name func (*Plugin) Provides ¶ func (p *Plugin) Provides() []any Provides declares factory methods. func (*Plugin) ServiceMongoDB ¶ func (p *Plugin) ServiceMongoDB() *mongo.Database Source Files ¶ View all Source files config.go plugin.go Click to show internal directories. Click to hide internal directories.