From 590444459d55ca4acc2e8537e01dbf3b1f078692 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 4 Feb 2020 13:32:38 +0300 Subject: [PATCH] Migrate to NeoFS API --- go.mod | 2 +- go.sum | 6 ++++-- receive.go | 8 ++++---- settings.go | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 856bdd0..93f9a1b 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.13 require ( github.com/labstack/echo/v4 v4.1.11 + github.com/nspcc-dev/neofs-api v0.2.13 github.com/nspcc-dev/neofs-crypto v0.2.3 - github.com/nspcc-dev/neofs-proto v0.2.11 github.com/pkg/errors v0.8.1 github.com/prometheus/client_golang v1.2.1 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 79d6f5c..1ca75a0 100644 --- a/go.sum +++ b/go.sum @@ -117,13 +117,15 @@ github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjW github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/nspcc-dev/hrw v1.0.8 h1:vwRuJXZXgkMvf473vFzeWGCfY1WBVeSHAEHvR4u3/Cg= github.com/nspcc-dev/hrw v1.0.8/go.mod h1:l/W2vx83vMQo6aStyx2AuZrJ+07lGv2JQGlVkPG06MU= +github.com/nspcc-dev/neofs-api v0.2.13 h1:bcHFW7uSFHoQ8jd/+ji7zVBibi4KsvXCWlNHrWLuduM= +github.com/nspcc-dev/neofs-api v0.2.13/go.mod h1:fbObruAfxjtWt9BKQEFnKUauXDXEdeEWFLex+5UQyyc= github.com/nspcc-dev/neofs-crypto v0.2.3 h1:aca3X2aly92ENRbFK+kH6Hd+J9EQ4Eu6XMVoITSIKtc= github.com/nspcc-dev/neofs-crypto v0.2.3/go.mod h1:8w16GEJbH6791ktVqHN9YRNH3s9BEEKYxGhlFnp0cDw= -github.com/nspcc-dev/neofs-proto v0.2.11 h1:+ahFZZE5E8V1L/Hhph7KC2YslXApy3fEjH88W3xKNJ0= -github.com/nspcc-dev/neofs-proto v0.2.11/go.mod h1:1bZzjSyISOzN0khssNO2lqVAGa9YHkN2jUvu8OHaF8s= github.com/nspcc-dev/netmap v1.6.1 h1:Pigqpqi6QSdRiusbq5XlO20A18k6Eyu7j9MzOfAE3CM= github.com/nspcc-dev/netmap v1.6.1/go.mod h1:mhV3UOg9ljQmu0teQShD6+JYX09XY5gu2I4hIByCH9M= github.com/nspcc-dev/rfc6979 v0.2.0 h1:3e1WNxrN60/6N0DW7+UYisLeZJyfqZTNOjeV/toYvOE= +github.com/nspcc-dev/rfc6979 v0.2.0 h1:3e1WNxrN60/6N0DW7+UYisLeZJyfqZTNOjeV/toYvOE= +github.com/nspcc-dev/rfc6979 v0.2.0/go.mod h1:exhIh1PdpDC5vQmyEsGvc4YDM/lyQp/452QxGq/UEso= github.com/nspcc-dev/rfc6979 v0.2.0/go.mod h1:exhIh1PdpDC5vQmyEsGvc4YDM/lyQp/452QxGq/UEso= github.com/nspcc-dev/tzhash v1.3.0 h1:n6FTHsfPYbMi5Jmo6SwGVVRQD8i2w1P2ScCaW6rz69Q= github.com/nspcc-dev/tzhash v1.3.0/go.mod h1:Lc4DersKS8MNIrunTmsAzANO56qnG+LZ4GOE/WYGVzU= diff --git a/receive.go b/receive.go index d59372a..1c50a7e 100644 --- a/receive.go +++ b/receive.go @@ -8,10 +8,10 @@ import ( "strings" "github.com/labstack/echo/v4" - "github.com/nspcc-dev/neofs-proto/container" - "github.com/nspcc-dev/neofs-proto/object" - "github.com/nspcc-dev/neofs-proto/refs" - "github.com/nspcc-dev/neofs-proto/service" + "github.com/nspcc-dev/neofs-api/container" + "github.com/nspcc-dev/neofs-api/object" + "github.com/nspcc-dev/neofs-api/refs" + "github.com/nspcc-dev/neofs-api/service" "github.com/pkg/errors" "go.uber.org/zap" ) diff --git a/settings.go b/settings.go index 472850e..50f8774 100644 --- a/settings.go +++ b/settings.go @@ -11,8 +11,8 @@ import ( "strings" "time" + "github.com/nspcc-dev/neofs-api/refs" crypto "github.com/nspcc-dev/neofs-crypto" - "github.com/nspcc-dev/neofs-proto/refs" "github.com/spf13/pflag" "github.com/spf13/viper" "go.uber.org/zap"