Documentation
¶
Index ¶
- Variables
- type ReverseProxy
- func (rp *ReverseProxy) Break(target string, c *gin.Context, proxy *httputil.ReverseProxy)
- func (rp *ReverseProxy) GenErrMsg(c *gin.Context, desc string, err error) error
- func (rp *ReverseProxy) GenOkMsg(c *gin.Context, desc string) string
- func (rp *ReverseProxy) Redirect(serviceName string) gin.HandlerFunc
- func (rp *ReverseProxy) Throttle(target string, c *gin.Context, proxy *httputil.ReverseProxy)
Constants ¶
This section is empty.
Variables ¶
View Source
var ReverseProxySet = wire.NewSet(wire.Struct(new(ReverseProxy), "*"))
Functions ¶
This section is empty.
Types ¶
type ReverseProxy ¶
func (*ReverseProxy) Break ¶
func (rp *ReverseProxy) Break(target string, c *gin.Context, proxy *httputil.ReverseProxy)
func (*ReverseProxy) GenOkMsg ¶
func (rp *ReverseProxy) GenOkMsg(c *gin.Context, desc string) string
func (*ReverseProxy) Redirect ¶
func (rp *ReverseProxy) Redirect(serviceName string) gin.HandlerFunc
Redirect URL使用通配符,例如/api/*
func (*ReverseProxy) Throttle ¶
func (rp *ReverseProxy) Throttle(target string, c *gin.Context, proxy *httputil.ReverseProxy)
Click to show internal directories.
Click to hide internal directories.