Files
evening_detective_server/internal/app/server.go
T
2026-06-29 00:46:57 +07:00

27 lines
582 B
Go

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
}
func (s *server) Signup(context.Context, *proto.SignupReq) (*proto.SignupRsp, error) {
panic("unimplemented")
}