config.go 279 B

12345678910111213141516171819
  1. package module
  2. import (
  3. "log"
  4. "github.com/gorilla/mux"
  5. "github.com/jinzhu/gorm"
  6. )
  7. // Conf is the module configuration accessible globally
  8. var Conf Config
  9. type Config struct {
  10. Router *mux.Router
  11. BasePath string
  12. DB *gorm.DB
  13. Debug bool
  14. Logger *log.Logger
  15. }