🚚 Rename http package to web

This commit is contained in:
2025-03-29 14:45:12 +08:00
parent ae2c141efa
commit c24ed1e7e6
17 changed files with 39 additions and 39 deletions

View File

@@ -15,7 +15,7 @@ import (
"git.solsynth.dev/hypernet/messaging/pkg/internal/services"
"github.com/robfig/cron/v3"
"git.solsynth.dev/hypernet/messaging/pkg/internal/http"
"git.solsynth.dev/hypernet/messaging/pkg/internal/web"
pkg "git.solsynth.dev/hypernet/messaging/pkg/internal"
"git.solsynth.dev/hypernet/messaging/pkg/internal/cache"
@@ -57,7 +57,7 @@ func main() {
if reader, err := sec.NewInternalTokenReader(viper.GetString("security.internal_public_key")); err != nil {
log.Error().Err(err).Msg("An error occurred when reading internal public key for jwt. Authentication related features will be disabled.")
} else {
http.IReader = reader
web.IReader = reader
log.Info().Msg("Internal jwt public key loaded.")
}
@@ -77,7 +77,7 @@ func main() {
services.SetupLiveKit()
// Server
go http.NewServer().Listen()
go web.NewServer().Listen()
go grpc.NewGrpc().Listen()