2024-05-19 11:44:55 +00:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
proto "${REPO_NAME_SNAKE}/proto"
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Server struct {
|
2024-05-19 11:57:32 +00:00
|
|
|
proto.Unimplemented${REPO_NAME_PASCAL}Server
|
2024-05-19 11:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewServer() *Server {
|
|
|
|
return &Server{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
|
|
|
|
return &proto.PingRsp{}, nil
|
|
|
|
}
|