diff options
Diffstat (limited to 'store/layered_store.go')
-rw-r--r-- | store/layered_store.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/store/layered_store.go b/store/layered_store.go index 69513febf..851d7536c 100644 --- a/store/layered_store.go +++ b/store/layered_store.go @@ -287,6 +287,12 @@ func (s *LayeredSchemeStore) Get(schemeId string) StoreChannel { }) } +func (s *LayeredSchemeStore) GetByName(schemeName string) StoreChannel { + return s.RunQuery(func(supplier LayeredStoreSupplier) *LayeredStoreSupplierResult { + return supplier.SchemeGetByName(s.TmpContext, schemeName) + }) +} + func (s *LayeredSchemeStore) Delete(schemeId string) StoreChannel { return s.RunQuery(func(supplier LayeredStoreSupplier) *LayeredStoreSupplierResult { return supplier.SchemeDelete(s.TmpContext, schemeId) |