split db and bolt to store interface

This commit is contained in:
ston1th 2018-09-11 14:50:53 +02:00
commit 7e77fd7d27
14 changed files with 419 additions and 545 deletions

View file

@ -12,7 +12,6 @@ import (
"time"
"git.giftfish.de/ston1th/gowiki/pkg/db"
"git.giftfish.de/ston1th/gowiki/pkg/index"
)
const (
@ -25,8 +24,7 @@ type HTTPServer struct {
Version string
SecCookie bool
Store *sessions.CookieStore
BS *db.BoltStore
Index *index.Index
DB *db.DB
listener net.Listener
srv *http.Server
templ map[string]*template.Template