Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReauthenticationInterval = 5 * time.Minute BrowserPingInterval = 30 * time.Second )
View Source
var ErrAuthChanged = errors.New("Connection closed: authentication changed or endpoint unavailable.")
Functions ¶
func ProxyTerminal ¶
func ProxyTerminal(w http.ResponseWriter, r *http.Request, terminal *api.TerminalSettings, proxy *Proxy)
Types ¶
type AuthChecker ¶
type AuthChecker struct { Checker AuthCheckerFunc Template *api.TerminalSettings StopCh chan error Done chan struct{} Count int64 }
Regularly checks that authorization is still valid for a terminal, outputting to the stopper when it isn't
func NewAuthChecker ¶
func NewAuthChecker(f AuthCheckerFunc, template *api.TerminalSettings, stopCh chan error) *AuthChecker
func (*AuthChecker) Close ¶
func (c *AuthChecker) Close() error
func (*AuthChecker) Loop ¶
func (c *AuthChecker) Loop(interval time.Duration)
type AuthCheckerFunc ¶
type AuthCheckerFunc func() *api.TerminalSettings
Click to show internal directories.
Click to hide internal directories.