Skip to content
This repository was archived by the owner on Nov 1, 2025. It is now read-only.

Commit aa04d3c

Browse files
committed
start refactoring a bit. create a separate package for public ip getter with tests.
1 parent bc8990d commit aa04d3c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/server/publicip/publicip.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package publicip
2+
3+
import "errors"
4+
5+
type Client interface {
6+
GetIP() (string, error)
7+
ProviderURL() string
8+
}
9+
10+
var (
11+
ErrInvalidIPAddress = errors.New("invalid ip address")
12+
)

0 commit comments

Comments
 (0)