diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-17 21:19:49 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-17 21:19:49 +0000 |
commit | 7baee5b892afcddb72a575282c6c8983d477ed44 (patch) | |
tree | 1dbde5fe9ab9d3d2f46090f0c72fc0246c410879 /main.go | |
parent | 2585e05af116cb95d2d2c36b096345c2b982e39c (diff) | |
download | communique-7baee5b892afcddb72a575282c6c8983d477ed44.tar.gz |
introduce concept of registry, start of webfinger impl
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |