Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
706e5520
Commit
706e5520
authored
Sep 11, 2018
by
Łukasz Magiera
Committed by
Steven Allen
Oct 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pubsub cmd: switch to coreapi
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
3f9a6ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
pubsub.go
pubsub.go
+7
-1
No files found.
pubsub.go
View file @
706e5520
...
...
@@ -6,7 +6,7 @@ import (
options
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
peer
"gx/ipfs/Qm
QsErDt8Qgw1XrsXf2BpEzDgGWtB1YLsTAARBup5b6B9W
/go-libp2p-peer"
peer
"gx/ipfs/Qm
bNepETomvmXfz1X5pHNFD2QuPqnqi47dTd94QJWSorQ3
/go-libp2p-peer"
)
// PubSubSubscription is an active PubSub subscription
...
...
@@ -24,6 +24,12 @@ type PubSubMessage interface {
// Data returns the message body
Data
()
[]
byte
// Seq returns message identifier
Seq
()
[]
byte
// Topics returns list of topics this message was set to
Topics
()
[]
string
}
// PubSubAPI specifies the interface to PubSub
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment