Matheus 6 years ago
parent
commit
6499b77bc3
2 changed files with 9 additions and 1 deletions
  1. 8 0
      config.go
  2. 1 1
      core/database/database.go

+ 8 - 0
config.go

1
 package main
1
 package main
2
 
2
 
3
 const SERVER_PORT = 8080
3
 const SERVER_PORT = 8080
4
+
5
+const DATA_SOURCE = "hml:spr777hml@tcp(208.97.141.22:3306)/hml_mkt_sprinta?parseTime=true"
6
+
7
+const DATABASE_HOST = "208.97.141.22"
8
+const DATABASE_PORT = "3306"
9
+const DATABASE_SCHEMA = "hml_mkt_sprinta"
10
+const DATABASE_USER = "hml"
11
+const DATABASE_PASS = "spr777hml"

+ 1 - 1
core/database/database.go

9
 
9
 
10
 var DB *sql.DB
10
 var DB *sql.DB
11
 
11
 
12
-func Init(dataSourceName string) error {
12
+func Init() error {
13
 
13
 
14
 	var err error
14
 	var err error
15
 
15