Skip to content

Commit

Permalink
feat: Improved failover of connections when using SRV records
Browse files Browse the repository at this point in the history
  • Loading branch information
driskell committed Feb 11, 2023
1 parent 248eae1 commit 05fcd48
Show file tree
Hide file tree
Showing 9 changed files with 624 additions and 425 deletions.
22 changes: 22 additions & 0 deletions lc-lib/addresspool/address.go
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
}
205 changes: 0 additions & 205 deletions lc-lib/addresspool/addresspool.go

This file was deleted.

162 changes: 0 additions & 162 deletions lc-lib/addresspool/addresspool_test.go

This file was deleted.

Loading

0 comments on commit 05fcd48

Please sign in to comment.