aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-17 21:19:49 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-17 21:19:49 +0000
commit7baee5b892afcddb72a575282c6c8983d477ed44 (patch)
tree1dbde5fe9ab9d3d2f46090f0c72fc0246c410879 /main.go
parent2585e05af116cb95d2d2c36b096345c2b982e39c (diff)
downloadcommunique-7baee5b892afcddb72a575282c6c8983d477ed44.tar.gz
introduce concept of registry, start of webfinger impl
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 5935bc9..165cacb 100644
--- a/main.go
+++ b/main.go
@@ -6,6 +6,7 @@ import (
"git.capotej.com/capotej/communique/cgi"
"git.capotej.com/capotej/communique/config"
"git.capotej.com/capotej/communique/http"
+ "git.capotej.com/capotej/communique/registry"
"github.com/BurntSushi/toml"
"go.uber.org/zap"
"go.uber.org/zap/zapio"
@@ -26,6 +27,7 @@ func main() {
log.Fatal(err)
}
log.Debugf("Loaded TOML Config: %+v", cfg)
+ registry := registry.NewRegistry(cfg)
var mainWg sync.WaitGroup
@@ -37,7 +39,7 @@ func main() {
// External Http Server
writer := &zapio.Writer{Log: logger, Level: zap.DebugLevel}
defer writer.Close()
- server := http.NewServer()
+ server := http.NewServer(registry)
mainWg.Add(1)
go server.Start(writer)