aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-08 13:59:00 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-08 13:59:00 +0000
commit555a2b6ba33afbb43bf84836747e5810eeee365d (patch)
treed8b5665f2f0dc91dbc78cad2118833b2cf79efc6 /main.go
parenta3ae6eaa65744014c225e82d142b217b8ce78488 (diff)
downloadcommunique-555a2b6ba33afbb43bf84836747e5810eeee365d.tar.gz
rename registry to controller
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index b4ea011..b5720b1 100644
--- a/main.go
+++ b/main.go
@@ -6,9 +6,9 @@ import (
"git.capotej.com/capotej/communique/cgi"
"git.capotej.com/capotej/communique/config"
+ "git.capotej.com/capotej/communique/controller"
"git.capotej.com/capotej/communique/http"
"git.capotej.com/capotej/communique/models"
- "git.capotej.com/capotej/communique/registry"
"github.com/BurntSushi/toml"
"github.com/dgraph-io/badger/v3"
"github.com/microcosm-cc/bluemonday"
@@ -58,8 +58,8 @@ func main() {
// Persister
persister := models.NewPersister(log, db)
- // Registry
- registry, err := registry.NewRegistry(cfg, persister, log)
+ // Controller
+ controller, err := controller.NewController(cfg, persister, log)
if err != nil {
log.Fatal(err)
}
@@ -76,7 +76,7 @@ func main() {
// // External Http Server
writer := &zapio.Writer{Log: logger, Level: zap.DebugLevel}
defer writer.Close()
- router := http.NewRouter(registry, log)
+ router := http.NewRouter(controller, log)
mainWg.Add(1)
go router.Start(writer)