Initial commit
This commit is contained in:
commit
f57d355631
27 changed files with 1315 additions and 0 deletions
16
ip/resolver/mock/service.go
Normal file
16
ip/resolver/mock/service.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package mock
|
||||
|
||||
import "net"
|
||||
|
||||
type Service struct {
|
||||
IP net.IP
|
||||
Error error
|
||||
}
|
||||
|
||||
func (s Service) Name() string {
|
||||
return "mock"
|
||||
}
|
||||
|
||||
func (s Service) Lookup() (net.IP, error) {
|
||||
return s.IP, s.Error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue