split db and bolt to store interface
This commit is contained in:
parent
07ff5ccffb
commit
7e77fd7d27
14 changed files with 419 additions and 545 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue