Files
template/internal/app/server.go
T
2024-05-19 18:57:32 +07:00

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
}