Logo
Explore Help
Register Sign In
admin/gluetun
1
0
Fork 0
You've already forked gluetun
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
00ee6ff9a7982e5f92d585e719eb17277c05b446
gluetun/internal/publicip/interfaces.go

14 lines
211 B
Go
Raw Normal View History

chore(all): return concrete types, accept interfaces - Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces
2022-06-11 01:34:30 +00:00
package publicip
import (
"context"
"net"
chore(publicip): `internal/publicip/ipinfo` package
2022-06-12 00:53:39 +00:00
"github.com/qdm12/gluetun/internal/publicip/ipinfo"
chore(all): return concrete types, accept interfaces - Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces
2022-06-11 01:34:30 +00:00
)
chore(publicip): refactoring - Exported `Fetcher` interface - Inject `Fetcher` to publicip loop and updaters - Get public IP and information at the same time - Only query ipinfo.io - Make `MultiInfo` part of the `Fetch` object
2022-06-12 00:09:01 +00:00
type Fetcher interface {
FetchInfo(ctx context.Context, ip net.IP) (
chore(publicip): `internal/publicip/ipinfo` package
2022-06-12 00:53:39 +00:00
result ipinfo.Response, err error)
chore(all): return concrete types, accept interfaces - Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces
2022-06-11 01:34:30 +00:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 211ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API