From 7ffcd1c9435bb53e46d49818097db3a41f6dd124 Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Thu, 5 Sep 2024 16:57:44 -0400 Subject: [PATCH] feat: Redis backend target - rebase to new main --- mocks/router.go | 28 ++++++++++++++++++++++++++++ store/router.go | 2 ++ 2 files changed, 30 insertions(+) diff --git a/mocks/router.go b/mocks/router.go index ab69f120..97c171fc 100644 --- a/mocks/router.go +++ b/mocks/router.go @@ -36,6 +36,34 @@ func (m *MockIRouter) EXPECT() *MockIRouterMockRecorder { return m.recorder } +// Caches mocks base method. +func (m *MockIRouter) Caches() []store.PrecomputedKeyStore { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Caches") + ret0, _ := ret[0].([]store.PrecomputedKeyStore) + return ret0 +} + +// Caches indicates an expected call of Caches. +func (mr *MockIRouterMockRecorder) Caches() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Caches", reflect.TypeOf((*MockIRouter)(nil).Caches)) +} + +// Fallbacks mocks base method. +func (m *MockIRouter) Fallbacks() []store.PrecomputedKeyStore { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Fallbacks") + ret0, _ := ret[0].([]store.PrecomputedKeyStore) + return ret0 +} + +// Fallbacks indicates an expected call of Fallbacks. +func (mr *MockIRouterMockRecorder) Fallbacks() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fallbacks", reflect.TypeOf((*MockIRouter)(nil).Fallbacks)) +} + // Get mocks base method. func (m *MockIRouter) Get(arg0 context.Context, arg1 []byte, arg2 commitments.CommitmentMode) ([]byte, error) { m.ctrl.T.Helper() diff --git a/store/router.go b/store/router.go index dd163285..ad2805cc 100644 --- a/store/router.go +++ b/store/router.go @@ -19,6 +19,8 @@ type IRouter interface { GetEigenDAStore() KeyGeneratedStore GetS3Store() PrecomputedKeyStore + Caches() []PrecomputedKeyStore + Fallbacks() []PrecomputedKeyStore } // Router ... storage backend routing layer