Documentation
¶
Index ¶
Constants ¶
View Source
const ( NEED_CONTENT_BROADCAST_TOPIC = "need-content-broadcast-topic" IMAGE_TRANSFER_PROTOCOL protocol.ID = "/permit-image-transfer/0.0.1" KEY_TRANSFER_PROTOCOL protocol.ID = "/veracy-key-transfer/0.0.1" NETWORK_TIMEOUT = 5 * time.Second )
View Source
const INBOX_PROTOCOL = "/inbox/1.0.0"
View Source
const INBOX_TOPIC = "inbox-messages"
View Source
const MESSAGE_TIMEOUT = 10 * time.Second
Variables ¶
View Source
var ( Node *ContentNode // Dynamic Topics GroupBroadcastTopic string )
Functions ¶
func GroupUserByAddress ¶
func PublishInboxMessage ¶
Types ¶
type ChannelMap ¶
type ContentNode ¶
type ContentNode struct {
Topics map[string]*pubsub.Topic
// contains filtered or unexported fields
}
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.