Initial commit

This commit is contained in:
Вечерний детектив
2026-06-28 17:24:14 +00:00
commit 36575fd0fc
17 changed files with 861 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package app
import (
"context"
proto "evening_detective_server/proto"
)
type server struct {
proto.UnsafeEveningDetectiveServerServer
}
func NewServer() proto.EveningDetectiveServerServer {
return &server{}
}
func (s *server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
return &proto.PingRsp{}, nil
}
func (s *server) Echo(_ context.Context, req *proto.EchoReq) (*proto.EchoRsp, error) {
return &proto.EchoRsp{Text: req.Text}, nil
}