proxy

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteProxifyURL

func AbsoluteProxifyURL(router *mux.Router, host, link string) string

AbsoluteProxifyURL generates an absolute URL for a proxified resource.

func AbsoluteProxyRewriter

func AbsoluteProxyRewriter(router *mux.Router, host, data string) string

AbsoluteProxyRewriter do the same as ProxyRewriter except it uses absolute URLs.

func ProxifyURL

func ProxifyURL(router *mux.Router, link string) string

ProxifyURL generates a relative URL for a proxified resource.

func ProxyRewriter

func ProxyRewriter(router *mux.Router, data string) string

ProxyRewriter replaces media URLs with internal proxy URLs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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