aboutsummaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-11-22 17:29:58 +0000
committerr <r@freesoftwareextremist.com>2020-11-22 17:29:58 +0000
commitfa27d9c6eb525b2e55c3faab5dd8a3e0e9658536 (patch)
tree15561e426c76d5fab44b5e401c2e81b77c0d7553 /repo
parent37b1c750454a780ef31a26d19005e5c94a39ae9b (diff)
downloadbloat-fa27d9c6eb525b2e55c3faab5dd8a3e0e9658536.tar.gz
bloat-fa27d9c6eb525b2e55c3faab5dd8a3e0e9658536.zip
Refactor things
- Remove separate auth/logging and merge them into transport.go - Add helper function for http handlers
Diffstat (limited to 'repo')
-rw-r--r--repo/appRepo.go6
-rw-r--r--repo/sessionRepo.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/repo/appRepo.go b/repo/appRepo.go
index 6338c4a..d97ac1f 100644
--- a/repo/appRepo.go
+++ b/repo/appRepo.go
@@ -3,15 +3,15 @@ package repo
import (
"encoding/json"
- "bloat/kv"
+ "bloat/util"
"bloat/model"
)
type appRepo struct {
- db *kv.Database
+ db *util.Database
}
-func NewAppRepo(db *kv.Database) *appRepo {
+func NewAppRepo(db *util.Database) *appRepo {
return &appRepo{
db: db,
}
diff --git a/repo/sessionRepo.go b/repo/sessionRepo.go
index 15e3d31..2097c3e 100644
--- a/repo/sessionRepo.go
+++ b/repo/sessionRepo.go
@@ -3,15 +3,15 @@ package repo
import (
"encoding/json"
- "bloat/kv"
+ "bloat/util"
"bloat/model"
)
type sessionRepo struct {
- db *kv.Database
+ db *util.Database
}
-func NewSessionRepo(db *kv.Database) *sessionRepo {
+func NewSessionRepo(db *util.Database) *sessionRepo {
return &sessionRepo{
db: db,
}