Consul registration

This commit is contained in:
2024-06-16 22:16:09 +08:00
parent ef055e1144
commit 0695338fa1
7 changed files with 263 additions and 36 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"git.solsynth.dev/hydrogen/passport/pkg/gap"
"os"
"os/signal"
"syscall"
@@ -46,6 +47,9 @@ func main() {
}
// Connect other services
if err := gap.Register(); err != nil {
log.Error().Err(err).Msg("An error occurred when registering service to gateway...")
}
if err := services.SetupFirebase(); err != nil {
log.Error().Err(err).Msg("An error occurred when connecting firebase...")
}