-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add an optional Topic field on orbitdb pubsub message Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
173 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package baseorbitdb | ||
|
||
import "github.com/libp2p/go-libp2p-core/peer" | ||
|
||
type EventExchangeHeads struct { | ||
Peer peer.ID | ||
Message *MessageExchangeHeads | ||
} | ||
|
||
func NewEventExchangeHeads(p peer.ID, msg *MessageExchangeHeads) EventExchangeHeads { | ||
return EventExchangeHeads{ | ||
Peer: p, | ||
Message: msg, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.