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) +}