OSDN Git Service

rename dir (#283)
[bytom/vapor.git] / toolbar / common / config.go
diff --git a/toolbar/common/config.go b/toolbar/common/config.go
new file mode 100644 (file)
index 0000000..eec5a90
--- /dev/null
@@ -0,0 +1,14 @@
+package common
+
+type MySQLConfig struct {
+       Connection MySQLConnection `json:"connection"`
+       LogMode    bool            `json:"log_mode"`
+}
+
+type MySQLConnection struct {
+       Host     string `json:"host"`
+       Port     uint   `json:"port"`
+       Username string `json:"username"`
+       Password string `json:"password"`
+       DbName   string `json:"database"`
+}