From 1b4a90189233155255d37b0cdde3b784e0c93a25 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman Date: Tue, 2 Jul 2019 07:38:10 -0500 Subject: [PATCH] Rename storage_fetcher -> csv_tail_storage_fetcher --- ...fetcher.go => csv_tail_storage_fetcher.go} | 4 ---- ...st.go => csv_tail_storage_fetcher_test.go} | 0 .../fetcher/storage_fetcher_interface.go | 21 +++++++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) rename libraries/shared/fetcher/{storage_fetcher.go => csv_tail_storage_fetcher.go} (93%) rename libraries/shared/fetcher/{storage_fetcher_test.go => csv_tail_storage_fetcher_test.go} (100%) create mode 100644 libraries/shared/fetcher/storage_fetcher_interface.go diff --git a/libraries/shared/fetcher/storage_fetcher.go b/libraries/shared/fetcher/csv_tail_storage_fetcher.go similarity index 93% rename from libraries/shared/fetcher/storage_fetcher.go rename to libraries/shared/fetcher/csv_tail_storage_fetcher.go index 48960dcf..97b2c0e3 100644 --- a/libraries/shared/fetcher/storage_fetcher.go +++ b/libraries/shared/fetcher/csv_tail_storage_fetcher.go @@ -25,10 +25,6 @@ import ( "github.com/vulcanize/vulcanizedb/pkg/fs" ) -type IStorageFetcher interface { - FetchStorageDiffs(chan<- utils.StorageDiffRow, chan<- error) -} - type CsvTailStorageFetcher struct { tailer fs.Tailer } diff --git a/libraries/shared/fetcher/storage_fetcher_test.go b/libraries/shared/fetcher/csv_tail_storage_fetcher_test.go similarity index 100% rename from libraries/shared/fetcher/storage_fetcher_test.go rename to libraries/shared/fetcher/csv_tail_storage_fetcher_test.go diff --git a/libraries/shared/fetcher/storage_fetcher_interface.go b/libraries/shared/fetcher/storage_fetcher_interface.go new file mode 100644 index 00000000..1cdce2c8 --- /dev/null +++ b/libraries/shared/fetcher/storage_fetcher_interface.go @@ -0,0 +1,21 @@ +// Copyright 2018 Vulcanize +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package fetcher + +import "github.com/vulcanize/vulcanizedb/libraries/shared/storage/utils" + +type IStorageFetcher interface { + FetchStorageDiffs(out chan<- utils.StorageDiffRow, errs chan<- error) +}