Documentation
¶
Index ¶
- func Closer(o any) io.ReadWriteCloser
- func CloserWrap(o any, err error) (io.ReadWriteCloser, error)
- func ConfigCsrfSecret() string
- func ConfigProxyGenerateQRCodeURL() string
- func ConfigProxyOTPSecret() string
- func ConfigProxyPass() string
- func ConfigProxyRedirectLoginURL() string
- func ConfigProxyTargetHosts() hosts
- func ConfigProxyUser() string
- func ConfigSessionToken() string
- func ConfigureProxy(opts ...option)
- func Getenv[T any](key string, fallback T) (out T)
- func Logger() *zap.Logger
- func WithCsrfSecret(secret string) option
- func WithProxyGenerateQRCodeURL(url string) option
- func WithProxyOTPSecret(secret string) option
- func WithProxyPass(pass string) option
- func WithProxyRedirectLoginURL(url string) option
- func WithProxyTargetHosts(hosts map[string]string) option
- func WithProxyUser(user string) option
- func WithSessionToken(token string) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Closer ¶
func Closer(o any) io.ReadWriteCloser
func CloserWrap ¶
func CloserWrap(o any, err error) (io.ReadWriteCloser, error)
func ConfigProxyGenerateQRCodeURL ¶
func ConfigProxyGenerateQRCodeURL() string
ConfigProxyGenerateQRCodeURL returns the proxy QR code generation URL.
func ConfigProxyOTPSecret ¶
func ConfigProxyOTPSecret() string
ConfigProxyOTPSecret returns the proxy OTP secret.
func ConfigProxyRedirectLoginURL ¶
func ConfigProxyRedirectLoginURL() string
ConfigProxyRedirectLoginURL returns the proxy redirect login URL.
func ConfigProxyTargetHosts ¶
func ConfigProxyTargetHosts() hosts
ConfigProxyTargetHosts returns the proxy target hosts.
func ConfigSessionToken ¶
func ConfigSessionToken() string
ConfigSessionToken returns the session token.
func WithCsrfSecret ¶
func WithCsrfSecret(secret string) option
WithCsrfSecret sets the CSRF secret.
func WithProxyGenerateQRCodeURL ¶
func WithProxyGenerateQRCodeURL(url string) option
WithProxyGenerateQRCodeURL sets the proxy QR code generation URL.
func WithProxyOTPSecret ¶
func WithProxyOTPSecret(secret string) option
WithProxyOTPSecret sets the proxy OTP secret.
func WithProxyRedirectLoginURL ¶
func WithProxyRedirectLoginURL(url string) option
WithProxyRedirectLoginURL sets the proxy redirect login URL.
func WithProxyTargetHosts ¶
WithProxyTargetHosts sets the proxy target hosts.
func WithSessionToken ¶
func WithSessionToken(token string) option
WithSessionToken sets the session token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.