Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB = mongo.New(mongo.Config{ Host: utils.GetEnv("DB_HOST"), Database: utils.GetEnv("DB_NAME"), Username: utils.GetEnv("DB_USER"), Password: utils.GetEnv("DB_PASS"), })
View Source
var Mongo = NewService("mongo"). SetHandler( Handler{ Method: utils.METHOD_GET, Path: "/health", Func: check_mg_health, })
Functions ¶
This section is empty.
Types ¶
type Service ¶
func NewService ¶
func (*Service) SetHandler ¶
func (*Service) SetupSchemas ¶
func (s *Service) SetupSchemas()
Click to show internal directories.
Click to hide internal directories.