Documentation ¶
Index ¶
- type Options
- type Provider
- func (m *Provider) Close() error
- func (m *Provider) Connect() error
- func (m *Provider) CreateCollection(collname string) error
- func (m *Provider) Disconnect() error
- func (m *Provider) FindAll() ([]bson.D, error)
- func (m *Provider) FindOne(filter interface{}, data interface{}) error
- func (m *Provider) FindWhere(filter interface{}) ([]bson.D, error)
- func (m *Provider) Get(key string) (string, error)
- func (m *Provider) GetAllExplicit() (map[string]string, error)
- func (m *Provider) GetAllImplicit() (map[string]string, error)
- func (m *Provider) GetAllVarNames() (map[string]bool, error)
- func (m *Provider) GetCollection(name string)
- func (m *Provider) GetDatabase(name string)
- func (m *Provider) InsertOne(dat interface{}) error
- func (m *Provider) Isconnected() bool
- func (m *Provider) ListDBCollections() ([]string, error)
- func (m *Provider) ListDatabases() ([]string, error)
- func (m *Provider) PingTest() error
- func (m *Provider) ProviderName() string
- func (m *Provider) Put(key, value string, isExplicit bool) error
- func (m *Provider) UpdateDocument(filter interface{}, dat interface{}) (*mongo.UpdateResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { MongoDB *Options // contains filtered or unexported fields }
Provider : MongoDB Provider
func (*Provider) CreateCollection ¶
CreateCollection : Creates New Collection
func (*Provider) Disconnect ¶
Disconnect : throws error when fails
func (*Provider) GetAllExplicit ¶
GetAllExplicit Variables and their Values
func (*Provider) GetAllImplicit ¶
GetAllImplicit Variables and Values
func (*Provider) GetAllVarNames ¶
GetAllVarNames
func (*Provider) GetCollection ¶
GetCollection : Get COllection
func (*Provider) GetDatabase ¶
GetDatabase : Connect to Database
func (*Provider) Isconnected ¶
Isconnected : Check If Connected to Database
func (*Provider) ListDBCollections ¶
ListDBCollections : List All Collections of Current Database
func (*Provider) ListDatabases ¶
ListDatabases : List all Databases
func (*Provider) ProviderName ¶
ProviderName i.e DB backend here (mongodb)
func (*Provider) UpdateDocument ¶
func (m *Provider) UpdateDocument(filter interface{}, dat interface{}) (*mongo.UpdateResult, error)
UpdateDocument : Update Existing Document or create New One
Click to show internal directories.
Click to hide internal directories.