Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIPv6NotSupported = errors.New("IPv6 is not supported on this system")
)
Functions ¶
This section is empty.
Types ¶
type DebugLogger ¶
type DebugLogger interface {
Debug(s string)
}
type HealthchecksIOClient ¶
type HealthchecksIOClient interface {
Ping(ctx context.Context, state healthchecksio.State) (err error)
}
type LookupIPer ¶
type PublicIPFetcher ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(db Database, updater UpdaterInterface, ipGetter PublicIPFetcher, period time.Duration, cooldown time.Duration, logger Logger, resolver LookupIPer, timeNow func() time.Time, hioClient HealthchecksIOClient) *Runner
type ShoutrrrClient ¶
type ShoutrrrClient interface {
Notify(message string)
}
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func NewUpdater ¶
func NewUpdater(db Database, client *http.Client, shoutrrrClient ShoutrrrClient, logger DebugLogger, timeNow func() time.Time) *Updater
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_update is a generated GoMock package.
|
Package mock_update is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.