Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor tracks authentication status and invokes a callback when it changes.
func NewMonitor ¶
NewMonitor creates a new authentication monitor with the given change callback.
func (*Monitor) Check ¶
Check verifies the current authentication status and invokes the onChange callback if the status has changed since the last check.
func (*Monitor) Run ¶
Run begins monitoring authentication status. It performs an initial check and then checks periodically at the specified interval until the context is cancelled.
func (*Monitor) SetCallback ¶
func (m *Monitor) SetCallback(onChange MonitorOnChangeFunc)
type MonitorOnChangeFunc ¶
Click to show internal directories.
Click to hide internal directories.