Files
gluetun/internal/publicip/interfaces.go
Quentin McGaw f96448947f fix(publicip): rework run loop and fix restarts
- Clearing IP data on VPN disconnection clears file
- More efficient partial updates
- Fix loop exit
- Validate settings before updating
2023-09-24 14:55:51 +00:00

20 lines
297 B
Go

package publicip
import (
"context"
"net/netip"
"github.com/qdm12/gluetun/internal/publicip/ipinfo"
)
type Fetcher interface {
FetchInfo(ctx context.Context, ip netip.Addr) (
result ipinfo.Response, err error)
}
type Logger interface {
Info(s string)
Warn(s string)
Error(s string)
}