package
0.0.15
Repository: https://github.com/sarumaj/kagi-proxy.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Closer builds a ReadWriteCloser interface around the given object.
CloserWrap is a convenience function that wraps the given object and error into a ReadWriteCloser interface.
ConfigIP2LocationApiKey returns the IP2Location API key.
ConfigProxyGuardPolicy returns the proxy guard rules.
ConfigProxyOTPSecret returns the proxy OTP secret.
ConfigProxyPass returns the proxy password.
ConfigProxyPublicDomains returns the public domains.
ConfigProxyRedirectLoginURL returns the proxy redirect login URL.
ConfigProxySessionDuration returns the proxy session duration.
ConfigProxySessionSecret returns the CSRF secret.
ConfigProxyTargetHosts returns the proxy target hosts.
ConfigProxyUser returns the proxy user.
ConfigSessionToken returns the session token.
CTEqual is a constant-time comparison function.
DecodeFromQuery decodes a URL query parameter into a map.
EncodeForQuery encodes the input map into a URL query parameter.
FatalOnError logs the error and exits the program if the error is not nil.
Getenv returns the value of the environment variable with the given key.
GetNonce generates a random nonce.
LoadPolicyFromFile loads a policy from a file.
Logger returns the logger.
MakeKeyPair generates a pair of 32-byte keys.
No description provided by the author
QuickGet is a type assertion helper for getting values from a map or an interface.
SetIP2LocationApiKey sets the IP2Location API key.
SetProxyGuardPolicy sets the proxy guard rules.
SetProxyOTPSecret sets the proxy OTP secret.
SetProxyPass sets the proxy password.
SetProxyPublicDomains sets the public domains.
SetProxyRedirectLoginURL sets the proxy redirect login URL.
SetProxySessionDuration sets the proxy session duration.
SetProxySessionSecret sets the CSRF secret.
SetProxyTargetHosts sets the proxy target hosts.
SetProxyUser sets the proxy user.
SetSessionToken sets the session token.

# Constants

No description provided by the author
No description provided by the author
Exact matches the path exactly.
Prefix matches the path as a prefix.
Regex matches the path as an arbitrary regex.

# Variables

B32StdNoPadding is a base32 encoding without padding.
B64StdWithPadding is a base64 encoding with standard padding.
B64URLWithPadding is a base64 URL safe encoding without padding.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author