-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improved failover of connections when using SRV records
- Loading branch information
Showing
9 changed files
with
624 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package addresspool | ||
|
||
import "net" | ||
|
||
// Address is an address item in a pool that is a single fixed address | ||
type Address struct { | ||
host string | ||
desc string | ||
addr *net.TCPAddr | ||
} | ||
|
||
func (a *Address) Host() string { | ||
return a.host | ||
} | ||
|
||
func (a *Address) Desc() string { | ||
return a.desc | ||
} | ||
|
||
func (a *Address) Addr() *net.TCPAddr { | ||
return a.addr | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.