Skip to content

innotechdevops/mgo-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mgo-driver

Install

$ go get github.com/innotechdevops/mgo-driver

How to use

  • Wtih env
driver := mgodriver.New(mgodriver.ConfigEnv())
  • With config
driver := mgodriver.New(mgodriver.Config{
    User:         os.Getenv("MARIA_USER"),
    Pass:         os.Getenv("MARIA_PASS"),
    Host:         os.Getenv("MARIA_HOST"),
    DatabaseName: os.Getenv("MARIA_DATABASE"),
    Port:         mgodriver.DefaultPort,
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages