watchtower: add GetTower to tower iterator
Add a GetTower method to the tower iterator.
This commit is contained in:
3 files changed
+46
-4
No files matched your search
@@ -1,6 +1,8 @@
|
||||
package wtclient
|
||||
|
||||
import "errors"
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrClientExiting signals that the watchtower client is shutting down.
|
||||
@@ -11,6 +13,10 @@ var (
|
||||
ErrTowerCandidatesExhausted = errors.New("exhausted all tower " +
|
||||
"candidates")
|
||||
|
||||
// ErrTowerNotInIterator is returned when a requested tower was not
|
||||
// found in the iterator.
|
||||
ErrTowerNotInIterator = errors.New("tower not in iterator")
|
||||
|
||||
// ErrPermanentTowerFailure signals that the tower has reported that it
|
||||
// has permanently failed or the client believes this has happened based
|
||||
// on the tower's behavior.
|
||||
|
||||
Reference in new issue
Block a user