mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-13 18:44:14 +08:00
refactor: remove unused code
This commit is contained in:
parent
d9bbde9e50
commit
ba83958c8e
1 changed files with 0 additions and 12 deletions
|
|
@ -4,10 +4,6 @@ import (
|
|||
"context"
|
||||
"crypto/tls"
|
||||
"errors"
|
||||
"github.com/1Panel-dev/1Panel/core/utils/req_helper/proxy_local"
|
||||
"github.com/1Panel-dev/1Panel/core/xpack/app/model"
|
||||
"github.com/1Panel-dev/1Panel/core/xpack/utils/node_helper"
|
||||
"github.com/gin-gonic/gin"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
|
|
@ -115,11 +111,3 @@ func handleGetWithTransport(url string, transport *http.Transport) (*http.Respon
|
|||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func RequestToNode(ctx *gin.Context, reqUrl, reqMethod string, body io.Reader, isLocal bool, timeout int, node model.Node) (res interface{}, resErr error) {
|
||||
if isLocal {
|
||||
return proxy_local.NewLocalClient(reqUrl, reqMethod, body, ctx)
|
||||
} else {
|
||||
return node_helper.NewRequestToAgent(reqUrl, reqMethod, body, timeout, node)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue