feat: base grpc system and base use

This commit is contained in:
2026-04-04 20:19:16 +03:00
parent b6d701c9e0
commit 4177c00e75
9 changed files with 388 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
package grpc
import (
"context"
"log"
"github.com/lorsanstand/HomeOps-Hub/api/gen/homeops"
"google.golang.org/protobuf/types/known/emptypb"
)
type Server struct {
homeops.UnimplementedHubServer
}
func (s *Server) Ping(ctx context.Context, _ *emptypb.Empty) (*homeops.PongResponse, error) {
log.Println("Answer")
return &homeops.PongResponse{Pong: "Huiiii"}, nil
}