reverse_proxy

package
v0.0.0-...-02a526c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReverseProxySet = wire.NewSet(wire.Struct(new(ReverseProxy), "*"))

Functions

This section is empty.

Types

type ReverseProxy

type ReverseProxy struct {
	Logger      core.ILogger
	RedisClient *redis.Client
}

func (*ReverseProxy) Break

func (rp *ReverseProxy) Break(target string, c *gin.Context, proxy *httputil.ReverseProxy)

func (*ReverseProxy) GenErrMsg

func (rp *ReverseProxy) GenErrMsg(c *gin.Context, desc string, err error) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL