aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage
diff options
context:
space:
mode:
authorJavier Peletier <jm@epiclabs.io>2018-10-03 15:15:17 +0800
committerJavier Peletier <jm@epiclabs.io>2018-10-03 15:15:28 +0800
commitde01178c18766b9f744acc94fe2b96804f998e40 (patch)
treeb572a263ff660bd5ded343a5253f86f1f1145e46 /swarm/storage
parent696bc9b01ce0ed3347fa1bd64460ccc08091e90a (diff)
downloaddexon-de01178c18766b9f744acc94fe2b96804f998e40.tar.gz
dexon-de01178c18766b9f744acc94fe2b96804f998e40.tar.zst
dexon-de01178c18766b9f744acc94fe2b96804f998e40.zip
swarm/storage/feed: Renamed package
Diffstat (limited to 'swarm/storage')
-rw-r--r--swarm/storage/feed/binaryserializer.go (renamed from swarm/storage/feeds/binaryserializer.go)2
-rw-r--r--swarm/storage/feed/binaryserializer_test.go (renamed from swarm/storage/feeds/binaryserializer_test.go)2
-rw-r--r--swarm/storage/feed/cacheentry.go (renamed from swarm/storage/feeds/cacheentry.go)2
-rw-r--r--swarm/storage/feed/doc.go (renamed from swarm/storage/feeds/doc.go)2
-rw-r--r--swarm/storage/feed/error.go (renamed from swarm/storage/feeds/error.go)2
-rw-r--r--swarm/storage/feed/feed.go (renamed from swarm/storage/feeds/feed.go)2
-rw-r--r--swarm/storage/feed/feed_test.go (renamed from swarm/storage/feeds/feed_test.go)2
-rw-r--r--swarm/storage/feed/handler.go (renamed from swarm/storage/feeds/handler.go)4
-rw-r--r--swarm/storage/feed/handler_test.go (renamed from swarm/storage/feeds/handler_test.go)4
-rw-r--r--swarm/storage/feed/id.go (renamed from swarm/storage/feeds/id.go)4
-rw-r--r--swarm/storage/feed/id_test.go (renamed from swarm/storage/feeds/id_test.go)4
-rw-r--r--swarm/storage/feed/lookup/epoch.go (renamed from swarm/storage/feeds/lookup/epoch.go)0
-rw-r--r--swarm/storage/feed/lookup/epoch_test.go (renamed from swarm/storage/feeds/lookup/epoch_test.go)2
-rw-r--r--swarm/storage/feed/lookup/lookup.go (renamed from swarm/storage/feeds/lookup/lookup.go)0
-rw-r--r--swarm/storage/feed/lookup/lookup_test.go (renamed from swarm/storage/feeds/lookup/lookup_test.go)2
-rw-r--r--swarm/storage/feed/query.go (renamed from swarm/storage/feeds/query.go)4
-rw-r--r--swarm/storage/feed/query_test.go (renamed from swarm/storage/feeds/query_test.go)2
-rw-r--r--swarm/storage/feed/request.go (renamed from swarm/storage/feeds/request.go)4
-rw-r--r--swarm/storage/feed/request_test.go (renamed from swarm/storage/feeds/request_test.go)4
-rw-r--r--swarm/storage/feed/sign.go (renamed from swarm/storage/feeds/sign.go)2
-rw-r--r--swarm/storage/feed/testutil.go (renamed from swarm/storage/feeds/testutil.go)2
-rw-r--r--swarm/storage/feed/timestampprovider.go (renamed from swarm/storage/feeds/timestampprovider.go)2
-rw-r--r--swarm/storage/feed/topic.go (renamed from swarm/storage/feeds/topic.go)2
-rw-r--r--swarm/storage/feed/topic_test.go (renamed from swarm/storage/feeds/topic_test.go)2
-rw-r--r--swarm/storage/feed/update.go (renamed from swarm/storage/feeds/update.go)2
-rw-r--r--swarm/storage/feed/update_test.go (renamed from swarm/storage/feeds/update_test.go)2
26 files changed, 31 insertions, 31 deletions
diff --git a/swarm/storage/feeds/binaryserializer.go b/swarm/storage/feed/binaryserializer.go
index ce146571b..4e4f67a09 100644
--- a/swarm/storage/feeds/binaryserializer.go
+++ b/swarm/storage/feed/binaryserializer.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import "github.com/ethereum/go-ethereum/common/hexutil"
diff --git a/swarm/storage/feeds/binaryserializer_test.go b/swarm/storage/feed/binaryserializer_test.go
index 0c81e7f18..37828d1c9 100644
--- a/swarm/storage/feeds/binaryserializer_test.go
+++ b/swarm/storage/feed/binaryserializer_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"encoding/json"
diff --git a/swarm/storage/feeds/cacheentry.go b/swarm/storage/feed/cacheentry.go
index e40037688..be42008e9 100644
--- a/swarm/storage/feeds/cacheentry.go
+++ b/swarm/storage/feed/cacheentry.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"bytes"
diff --git a/swarm/storage/feeds/doc.go b/swarm/storage/feed/doc.go
index d1edf5d6d..1f07948f2 100644
--- a/swarm/storage/feeds/doc.go
+++ b/swarm/storage/feed/doc.go
@@ -40,4 +40,4 @@ Request: Feed Update with signature
Epoch: time slot where the update is stored
*/
-package feeds
+package feed
diff --git a/swarm/storage/feeds/error.go b/swarm/storage/feed/error.go
index 7751a9f19..206ba3316 100644
--- a/swarm/storage/feeds/error.go
+++ b/swarm/storage/feed/error.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"fmt"
diff --git a/swarm/storage/feeds/feed.go b/swarm/storage/feed/feed.go
index d5b262555..b6ea665a6 100644
--- a/swarm/storage/feeds/feed.go
+++ b/swarm/storage/feed/feed.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"hash"
diff --git a/swarm/storage/feeds/feed_test.go b/swarm/storage/feed/feed_test.go
index 7806e0ad7..6a575594f 100644
--- a/swarm/storage/feeds/feed_test.go
+++ b/swarm/storage/feed/feed_test.go
@@ -13,7 +13,7 @@
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"testing"
diff --git a/swarm/storage/feeds/handler.go b/swarm/storage/feed/handler.go
index 2c5261614..9e2640282 100644
--- a/swarm/storage/feeds/handler.go
+++ b/swarm/storage/feed/handler.go
@@ -16,7 +16,7 @@
// Handler is the API for feeds
// It enables creating, updating, syncing and retrieving feed updates and their data
-package feeds
+package feed
import (
"bytes"
@@ -25,7 +25,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
"github.com/ethereum/go-ethereum/swarm/log"
"github.com/ethereum/go-ethereum/swarm/storage"
diff --git a/swarm/storage/feeds/handler_test.go b/swarm/storage/feed/handler_test.go
index b35a7c1c1..cf95bc1f5 100644
--- a/swarm/storage/feeds/handler_test.go
+++ b/swarm/storage/feed/handler_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"bytes"
@@ -31,7 +31,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/swarm/chunk"
"github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
var (
diff --git a/swarm/storage/feeds/id.go b/swarm/storage/feed/id.go
index dd813ae89..7e17743c1 100644
--- a/swarm/storage/feeds/id.go
+++ b/swarm/storage/feed/id.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"fmt"
@@ -22,7 +22,7 @@ import (
"strconv"
"github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
"github.com/ethereum/go-ethereum/swarm/storage"
)
diff --git a/swarm/storage/feeds/id_test.go b/swarm/storage/feed/id_test.go
index 2ef12e891..e561ff9b4 100644
--- a/swarm/storage/feeds/id_test.go
+++ b/swarm/storage/feed/id_test.go
@@ -1,9 +1,9 @@
-package feeds
+package feed
import (
"testing"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
func getTestID() *ID {
diff --git a/swarm/storage/feeds/lookup/epoch.go b/swarm/storage/feed/lookup/epoch.go
index bafe95477..bafe95477 100644
--- a/swarm/storage/feeds/lookup/epoch.go
+++ b/swarm/storage/feed/lookup/epoch.go
diff --git a/swarm/storage/feeds/lookup/epoch_test.go b/swarm/storage/feed/lookup/epoch_test.go
index 70bfd836a..0629f3d1d 100644
--- a/swarm/storage/feeds/lookup/epoch_test.go
+++ b/swarm/storage/feed/lookup/epoch_test.go
@@ -3,7 +3,7 @@ package lookup_test
import (
"testing"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
func TestMarshallers(t *testing.T) {
diff --git a/swarm/storage/feeds/lookup/lookup.go b/swarm/storage/feed/lookup/lookup.go
index 2f862d81c..2f862d81c 100644
--- a/swarm/storage/feeds/lookup/lookup.go
+++ b/swarm/storage/feed/lookup/lookup.go
diff --git a/swarm/storage/feeds/lookup/lookup_test.go b/swarm/storage/feed/lookup/lookup_test.go
index 7d5014608..d71e81e95 100644
--- a/swarm/storage/feeds/lookup/lookup_test.go
+++ b/swarm/storage/feed/lookup/lookup_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
type Data struct {
diff --git a/swarm/storage/feeds/query.go b/swarm/storage/feed/query.go
index 7bd2800a8..8be78a952 100644
--- a/swarm/storage/feeds/query.go
+++ b/swarm/storage/feed/query.go
@@ -14,14 +14,14 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"fmt"
"strconv"
"github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
// Query is used to specify constraints when performing an update lookup
diff --git a/swarm/storage/feeds/query_test.go b/swarm/storage/feed/query_test.go
index 1420c69ae..9fa5e2980 100644
--- a/swarm/storage/feeds/query_test.go
+++ b/swarm/storage/feed/query_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"testing"
diff --git a/swarm/storage/feeds/request.go b/swarm/storage/feed/request.go
index 81e1b10fe..6968d8b9a 100644
--- a/swarm/storage/feeds/request.go
+++ b/swarm/storage/feed/request.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"bytes"
@@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
// Request represents a request to sign or signed feed update message
diff --git a/swarm/storage/feeds/request_test.go b/swarm/storage/feed/request_test.go
index 8a15815a4..f5de32b74 100644
--- a/swarm/storage/feeds/request_test.go
+++ b/swarm/storage/feed/request_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"bytes"
@@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feeds/lookup"
+ "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
)
func areEqualJSON(s1, s2 string) (bool, error) {
diff --git a/swarm/storage/feeds/sign.go b/swarm/storage/feed/sign.go
index f5760c8f2..5f0ea0b33 100644
--- a/swarm/storage/feeds/sign.go
+++ b/swarm/storage/feed/sign.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"crypto/ecdsa"
diff --git a/swarm/storage/feeds/testutil.go b/swarm/storage/feed/testutil.go
index 879f73348..b513fa1f2 100644
--- a/swarm/storage/feeds/testutil.go
+++ b/swarm/storage/feed/testutil.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"context"
diff --git a/swarm/storage/feeds/timestampprovider.go b/swarm/storage/feed/timestampprovider.go
index f6aa0775c..072dc3a48 100644
--- a/swarm/storage/feeds/timestampprovider.go
+++ b/swarm/storage/feed/timestampprovider.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"encoding/binary"
diff --git a/swarm/storage/feeds/topic.go b/swarm/storage/feed/topic.go
index 2dc8c18cd..43a7b4ba4 100644
--- a/swarm/storage/feeds/topic.go
+++ b/swarm/storage/feed/topic.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"bytes"
diff --git a/swarm/storage/feeds/topic_test.go b/swarm/storage/feed/topic_test.go
index 8994002d7..0403204f7 100644
--- a/swarm/storage/feeds/topic_test.go
+++ b/swarm/storage/feed/topic_test.go
@@ -1,4 +1,4 @@
-package feeds
+package feed
import (
"testing"
diff --git a/swarm/storage/feeds/update.go b/swarm/storage/feed/update.go
index 02bd37522..627a537d1 100644
--- a/swarm/storage/feeds/update.go
+++ b/swarm/storage/feed/update.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"fmt"
diff --git a/swarm/storage/feeds/update_test.go b/swarm/storage/feed/update_test.go
index 7763da0c8..4007223c6 100644
--- a/swarm/storage/feeds/update_test.go
+++ b/swarm/storage/feed/update_test.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-package feeds
+package feed
import (
"testing"