mongo

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoConfigs

type MongoConfigs struct {
	URL                  string `json:"URL" yaml:"URL"`
	Port                 string `json:"Port" yarml:"Port"`
	UserName             string `json:"userName" yaml:"userName"`
	Password             string `json:"password" yaml:"password"`
	DBName               string `json:"dbName" yaml:"DBName"`
	MongoIsReplicated    bool   `json:"isReplicated"`
	MongoReplicatedName  string `json:"replicatedName"`
	FullConnectionString string `json:"fullConnectionString"`
}

func (*MongoConfigs) String

func (c *MongoConfigs) String() string

type MongoDriver added in v0.1.3

type MongoDriver struct {
	Configs *MongoConfigs
}

func (*MongoDriver) Connect added in v0.1.3

func (d *MongoDriver) Connect() (*gorm.DB, *mongo.Client, error)

func (*MongoDriver) Type added in v0.1.3

func (d *MongoDriver) Type() uint8

Jump to

Keyboard shortcuts

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