Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbConfig ¶
type DbConfig struct {
DbType string `json:"dbType"`
Host string `json:"host"`
Username string `json:"username"`
Password string `json:"password"`
DbName string `json:"dbName"`
Filename string `json:"filename"`
Location string `json:"location"`
Port uint32 `json:"port"`
PoolSize uint `json:"poolSize"`
Url string `json:"url"`
SecureOption DbSecureType `json:"secureOption"`
Options DbConnectOptions `json:"options"`
}
func (DbConfig) ClosePgxDb ¶
func (dbConfig DbConfig) ClosePgxDb()
func (DbConfig) ClosePgxDbPool ¶
func (dbConfig DbConfig) ClosePgxDbPool()
func (DbConfig) OpenPgxDbPool ¶
type DbConfigType ¶
type DbConfigType struct {
Host string `json:"host"`
Username string `json:"username"`
Password string `json:"password"`
DbName string `json:"dbName"`
Filename string `json:"filename"`
Location string `json:"location"`
Port uint32 `json:"port"`
DbType string `json:"dbType"`
PoolSize uint `json:"poolSize"`
Url string `json:"url"`
SecureOption DbSecureType `json:"secureOption"`
}
type DbConnectOptions ¶
type DbConnectOptions map[string]interface{}
type DbConnectionType ¶
type DbSecureType ¶
type MongoDbConfig ¶
type MongoDbConfig struct {
DbType string
Host string
Username string
Password string
DbName string
Filename string
Location string
Port uint32
PoolSize uint
Url string
Options MongoDbConnectOptions
}
func (MongoDbConfig) CloseMongoDb ¶
func (dbConfig MongoDbConfig) CloseMongoDb()
func (MongoDbConfig) OpenMongoDb ¶
func (dbConfig MongoDbConfig) OpenMongoDb() (*mongo.Client, error)
type MongoDbConfigType ¶
type MongoDbConnectOptions ¶
type MongoDbConnectOptions map[string]interface{}
type MongoDbConnectionType ¶
type MongoDbSecureType ¶
Click to show internal directories.
Click to hide internal directories.