INNER CODE UNIT · Go
SetUpDBConnection
caohoangnam/go-clean-architecture · config/database.go:143
func SetUpDBConnection(DB *gorm.DB) {
db = DB
}
func GetDBConnection() *gorm.DB {
return db
}
func SetPortConnection(Port string) {
port = Port
}
func GetPortConnection() string {
return port
}
func onMeowCreated(m events.MeowCreatedMessage) {
meow := domain.Meow{