[#1454] Upgrade NeoFS SDK Go module with new IDs

Core changes:
 * avoid package-colliding variable naming
 * avoid using pointers to IDs where unnecessary
 * avoid using `idSDK` import alias pattern
 * use `EncodeToString` for protocol string calculation and `String` for
  printing

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-05-31 20:00:41 +03:00 committed by LeL
parent cc6209e8a0
commit 1c30414a6c
218 changed files with 2095 additions and 2521 deletions

View file

@ -1,12 +1,14 @@
package notificator
import objectSDKAddress "github.com/nspcc-dev/neofs-sdk-go/object/address"
import (
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
)
// NotificationSource is a source of object notifications.
type NotificationSource interface {
// Iterate must iterate over all notifications for the
// provided epoch and call handler for all of them.
Iterate(epoch uint64, handler func(topic string, addr *objectSDKAddress.Address))
Iterate(epoch uint64, handler func(topic string, addr oid.Address))
}
// NotificationWriter notifies all the subscribers
@ -14,5 +16,5 @@ type NotificationSource interface {
type NotificationWriter interface {
// Notify must notify about an event generated
// from an object with a specific topic.
Notify(topic string, address *objectSDKAddress.Address)
Notify(topic string, address oid.Address)
}