Documentation
¶
Index ¶
- Constants
- Variables
- func Decrypt(prefix, encryptedurl, publicurl string) (plainurl, encryptedEntryurl, eid string, err error)
- func FetchUrl(urlObj *url.URL, srcReq *http.Request, queryParams url.Values, ...) (*http.Response, error)
- func Generate(targetUrl, eid, key, publicurl, prefix string, cipher cipher.AEAD) (canonicalurl string, sign, encryptedurl, entryurl, encryptedEntryurl string)
- func ProxyFunc(w http.ResponseWriter, r *http.Request, prefix, key string, ...)
- func Realkey(key, keytype string) string
- type Template
Constants ¶
View Source
const ( HEADER_PREFIX = "header_" RESPONSE_HEADER_PREFIX = "resheader_" SUB_PREFIX = "sub_" CORS_STRING = "cors" NOCACHE_STRING = "nocache" NORF_STRING = "norf" PROXY_STRING = "proxy" IMPERSONATE_STRING = "impersonate" FORCESUB_STRING = "forcesub" NOCSP_STRING = "nocsp" TIMEOUT_STRING = "timeout" INSECURE_STRING = "insecure" COOKIE_STRING = "cookie" USER_STRING = "user" RESUSER_STRING = "resuser" // response http authorization username:password FDHEADERS_STRING = "fdheaders" BODY_STRING = "body" RESBODY_STRING = "resbody" RESBODYTYPE_STRING = "resbodytype" TYPE_STRING = "type" RESTYPE_STRING = "restype" METHOD_STRING = "method" REFERER_STRING = "referer" ORIGIN_STRING = "origin" SCOPE_STRING = "scope" SIGN_STRING = "sign" KEYTYPE_STRING = "keytype" VALIDBEFORE_STRING = "validbefore" VALIDAFTER_STRING = "validafter" RESPASS_STRING = "respass" // response body encryption password EID_STRING = "eid" // encrypt url id DEBUG_STRING = "debug" ARG_SRING = "arg" ARGS_SRING = "args" )
Variables ¶
View Source
var (
TEXTUAL_MIMES = []string{
"application/json",
"application/xml",
"application/atom+xml",
"application/x-sh",
}
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.