14 lines
588 B
Go
14 lines
588 B
Go
package membership
|
|
|
|
import "errors"
|
|
|
|
// ErrLobbyUnavailable signals that a Resolve call could not be completed
|
|
// because the upstream Lobby service was unreachable. The cache wraps
|
|
// `ports.ErrLobbyUnavailable` returned by the LobbyClient adapter; hot-path
|
|
// services map this sentinel to `service_unavailable`.
|
|
//
|
|
// Callers branch with errors.Is. Returned only on cache miss / TTL expiry
|
|
// when the Lobby fetch fails; cached entries are served regardless of
|
|
// upstream availability until the TTL elapses.
|
|
var ErrLobbyUnavailable = errors.New("membership cache: lobby unavailable")
|