Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound variable ErrNotFound = mgo.ErrNotFound // ErrCursor variable ErrCursor = mgo.ErrCursor )
View Source
var Resources = make(map[string]*Mongo)
Resources variable
View Source
var SqlResources = make(map[string]*Sql)
SqlResources variable
Functions ¶
Types ¶
type DBServer ¶
type DBServer struct {
DbServer []DbConfig `json:"dbResources" bson:"dbResources"`
}
DBServer struct
type DbConfig ¶
type DbConfig struct { Name string `json:"name" bson:"name"` Engine string `json:"engine" bson:"engine"` Host string `json:"host" bson:"host"` Port string `json:"port" bson:"port"` Username string `json:"username" bson:"username"` Password string `json:"password" bson:"password"` Db string `json:"db" bson:"db"` Ssl bool `json:"ssl" bson:"ssl"` }
DbConfig struct
Click to show internal directories.
Click to hide internal directories.