diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-08 13:59:00 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-08 13:59:00 +0000 |
commit | 555a2b6ba33afbb43bf84836747e5810eeee365d (patch) | |
tree | d8b5665f2f0dc91dbc78cad2118833b2cf79efc6 /main.go | |
parent | a3ae6eaa65744014c225e82d142b217b8ce78488 (diff) | |
download | communique-555a2b6ba33afbb43bf84836747e5810eeee365d.tar.gz |
rename registry to controller
Diffstat (limited to '')
-rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |