watchtower: add GetTower to tower iterator

Add a GetTower method to the tower iterator.
This commit is contained in:
Elle Mouton committed 2023-03-20 10:46:53 +02:00
1 parent e432261dab
commit 0ed5c750c8
3 files changed
+46 -4

No files matched your search

+7 -1
View File
@@ -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.