INNER CODE UNIT · Go

GetDBConnection

caohoangnam/go-clean-architecture · config/database.go:147

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{
		Id:        m.Id,
		Body:      m.Body,
		CreatedAt: m.CreatedAt,
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…