Documentation ¶
Index ¶
Constants ¶
View Source
const ( NEED_BROADCAST_TOPIC = "need-broadcast-topic" IMAGE_TRANSFER_PROTOCOL protocol.ID = "/permit-image-transfer/0.0.1" )
Variables ¶
View Source
var IsUp = false
Functions ¶
Types ¶
type ContentNode ¶
type ContentNode struct { Topics map[string]*pubsub.Topic // contains filtered or unexported fields }
var Node *ContentNode
func Connect ¶
func Connect(conf *config.AppConfig) *ContentNode
func (*ContentNode) ID ¶
func (node *ContentNode) ID() string
func (*ContentNode) PeerID ¶
func (node *ContentNode) PeerID() peer.ID
Click to show internal directories.
Click to hide internal directories.