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 ProxyChannel ¶
func ProxyChannel(w http.ResponseWriter, r *http.Request, settings *api.ChannelSettings, proxy *Proxy)
Types ¶
type AuthChecker ¶
type AuthChecker struct { Checker AuthCheckerFunc Template *api.ChannelSettings StopCh chan error Done chan struct{} Count int64 }
Regularly checks that authorization is still valid for a channel, outputting to the stopper when it isn't
func NewAuthChecker ¶
func NewAuthChecker(f AuthCheckerFunc, template *api.ChannelSettings, 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.ChannelSettings
Click to show internal directories.
Click to hide internal directories.