@cryptotaxi247 / kubo / commits / d5d6e5c13

pubsub cmd: switch to coreapi

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@706e552037bd75687b5ff0cedb9802bc7f2d4617 This commit was moved from ipfs/boxo@add2ae0705df01044239e9ed5691974847332408

Łukasz Magiera committed Sep 11, 2018 at 12:52 UTC d5d6e5c13bd0db3b26c5c06a050eda92dc6c1437
1 file changed +7 -1
core/coreiface/pubsub.go
+7 -1
@@ -6,7 +6,7 @@ import (
6
7 options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
8
9 - peer "gx/ipfs/QmQsErDt8Qgw1XrsXf2BpEzDgGWtB1YLsTAARBup5b6B9W/go-libp2p-peer"
9 + peer "gx/ipfs/QmbNepETomvmXfz1X5pHNFD2QuPqnqi47dTd94QJWSorQ3/go-libp2p-peer"
10 )
11
12 // PubSubSubscription is an active PubSub subscription
@@ -24,6 +24,12 @@ type PubSubMessage interface {
24
25 // Data returns the message body
26 Data() []byte
27 +
28 + // Seq returns message identifier
29 + Seq() []byte
30 +
31 + // Topics returns list of topics this message was set to
32 + Topics() []string
33 }
34
35 // PubSubAPI specifies the interface to PubSub