From 263726b72fc1c6b689754ced8f03a1c3d89680b6 Mon Sep 17 00:00:00 2001 From: dreamszhu Date: Wed, 1 May 2024 10:10:42 +0800 Subject: [PATCH] Add endpoint.Failer --- endpoint/endpoint.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/endpoint/endpoint.go b/endpoint/endpoint.go index 383a26b..0061ec3 100644 --- a/endpoint/endpoint.go +++ b/endpoint/endpoint.go @@ -23,3 +23,7 @@ func InvalidateOnError(timeout time.Duration) EndpointerOption { opts.InvalidateTimeout = timeout } } + +type Failer interface { + Failed() error +}