Skip to content

Commit

Permalink
doc(nodebuilder/p2p): add module doc
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Nov 11, 2022
1 parent 97db5f6 commit 4ad1d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodebuilder/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ type API struct {
PubSubPeers func(topic string) []peer.ID
}

// Module represents all accessible methods related to the node's p2p
// host / operations.
type Module interface {
// Info returns basic information about the node's p2p host/operations.
Info() Info
Expand Down

0 comments on commit 4ad1d56

Please sign in to comment.