Documentation ¶
Index ¶
- type Fetcher
- type Logger
- type Loop
- func (l *Loop) ClearData() (err error)
- func (l *Loop) GetData() (data models.PublicIP)
- func (l *Loop) Start(_ context.Context) (_ <-chan error, err error)
- func (l *Loop) StartSingleRun()
- func (l *Loop) Stop() (err error)
- func (l *Loop) String() string
- func (l *Loop) UpdateWith(partialUpdate settings.PublicIP) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loop ¶
type Loop struct {
// contains filtered or unexported fields
}
func (*Loop) ClearData ¶
ClearData is used when the VPN connection goes down and the public IP is not known anymore.
func (*Loop) GetData ¶
GetData returns the public IP data obtained from the last fetch. It is notably used by the HTTP control server.
func (*Loop) StartSingleRun ¶
func (l *Loop) StartSingleRun()
Click to show internal directories.
Click to hide internal directories.