Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPostgreDb ¶
func GetPostgreDb(postgre PostgreSystem) *sqlx.DB
func SystemConnection ¶
func SystemConnection() map[string]interface{}
we create different types of databse connection here.
Types ¶
type PostgreHost ¶
type PostgreHost struct {
Driver string
Database string
Username string
Ssl string
Password string
}
func (*PostgreHost) Connect ¶
func (p *PostgreHost) Connect() *sqlx.DB
func (PostgreHost) Init ¶
func (p PostgreHost) Init()
type PostgreSystem ¶
type RedisSytem ¶
Click to show internal directories.
Click to hide internal directories.