Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContentTypeKey = "Content-Type" JsonContentType = "application/json" RedirectHttpCode = 302 SessionTokenKey = "X-Session-Token" AjaxRequestIdentifier = "XMLHttpRequest" AjaxRequestHeader = "X-Requested-With" HtmlSuffix = ".html" CssSuffix = ".css" JsSuffix = ".js" JsonSuffix = ".json" VendorsPath = "/vendors" DataPathPrefix = "/data" LoginUriPath = "/api/v1/auth/login" UserCreaterUriPath = "/api/v1/user" LoginHtmlPage = "/login.html" UserCreaterHtmlPage = "/usercreater.html" NoAuthorizationMsg = "no authorization." )
View Source
const ( HttpProtocol = "http" OriginHostReqHeader = "X-Origin-Host" ForwardedHostReqHeader = "X-Forwarded-Host" )
View Source
const (
RootURIPath = "/"
)
Variables ¶
View Source
var DynamicProxyCache = make(map[string]string, 10)
target ProxyCache {token:targetIP}
View Source
var TokenCache = make(map[string]domain.User, 20)
{Token:User}
Functions ¶
func GetMd5String ¶
func ProxyHandler ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.