MQ, KV and MQ allocator

This commit is contained in:
2024-10-24 23:46:09 +08:00
parent aa67bd0b8f
commit 23d14e4e46
11 changed files with 578 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
package grpc
import (
directory2 "git.solsynth.dev/hypernet/nexus/pkg/internal/directory"
"git.solsynth.dev/hypernet/nexus/pkg/internal/directory"
"net"
"git.solsynth.dev/hypernet/nexus/pkg/proto"
@@ -17,6 +17,7 @@ import (
type Server struct {
proto.UnimplementedDatabaseServiceServer
proto.UnimplementedStreamServiceServer
proto.UnimplementedAllocatorServiceServer
health.UnimplementedHealthServer
srv *grpc.Server
@@ -27,10 +28,11 @@ func NewServer() *Server {
srv: grpc.NewServer(),
}
proto.RegisterDirectoryServiceServer(server.srv, &directory2.ServiceRpcServer{})
proto.RegisterCommandProviderServer(server.srv, &directory2.CommandRpcServer{})
proto.RegisterDirectoryServiceServer(server.srv, &directory.ServiceRpcServer{})
proto.RegisterCommandProviderServer(server.srv, &directory.CommandRpcServer{})
proto.RegisterDatabaseServiceServer(server.srv, server)
proto.RegisterStreamServiceServer(server.srv, server)
proto.RegisterAllocatorServiceServer(server.srv, server)
health.RegisterHealthServer(server.srv, server)
reflection.Register(server.srv)