Add data layer

This includes config changes, collections, posts, some post rendering
funcs, and actual database connection when the server starts up.
This commit is contained in:
Matt Baer
2018-10-16 22:31:27 -04:00
parent f7430fb8bc
commit 0c1e1dd57e
8 changed files with 2616 additions and 8 deletions

View File

@@ -15,11 +15,12 @@ type (
}
DatabaseCfg struct {
Type string `ini:"type"`
User string `ini:"username"`
Pass string `ini:"password"`
Host string `ini:"host"`
Port int `ini:"port"`
Type string `ini:"type"`
User string `ini:"username"`
Password string `ini:"password"`
Database string `ini:"database"`
Host string `ini:"host"`
Port int `ini:"port"`
}
AppCfg struct {