feat: update conn in hub

This commit is contained in:
2026-04-05 15:48:23 +03:00
parent acbc100928
commit 306dcff31f
8 changed files with 100 additions and 73 deletions
+21
View File
@@ -0,0 +1,21 @@
package rpc
import (
"context"
pb "github.com/lorsanstand/HomeOps-Hub/api/gen/homeops"
"google.golang.org/protobuf/types/known/emptypb"
)
type Server struct {
pb.UnimplementedHubServer
}
func NewServer() *Server {
return &Server{}
}
func (s *Server) Ping(ctx context.Context, _ *emptypb.Empty) (*pb.PongResponse, error) {
return &pb.PongResponse{Pong: "Pong"}, nil
}