evening_detective/internal/app/server.go

26 lines
546 B
Go

package app
import (
"context"
proto "evening_detective/proto"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
type Server struct {
proto.UnimplementedEveningDetectiveServer
}
func NewServer() *Server {
return &Server{}
}
func (s *Server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
return &proto.PingRsp{}, nil
}
func (s *Server) AddTeams(context.Context, *proto.AddTeamsReq) (*proto.AddTeamsRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddTeams not implemented")
}