19 lines
305 B
Go
19 lines
305 B
Go
package app
|
|
|
|
import (
|
|
proto "${REPO_NAME_SNAKE}/proto"
|
|
"context"
|
|
)
|
|
|
|
type Server struct {
|
|
proto.Unimplemented${REPO_NAME_PASCAL}Server
|
|
}
|
|
|
|
func NewServer() *Server {
|
|
return &Server{}
|
|
}
|
|
|
|
func (s *Server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
|
|
return &proto.PingRsp{}, nil
|
|
}
|