mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
18 lines
346 B
Go
18 lines
346 B
Go
package grpc
|
|
|
|
import (
|
|
"context"
|
|
|
|
"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) {
|
|
return &homeops.PongResponse{Pong: "Huiiii"}, nil
|
|
|
|
}
|