Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type MQ ¶
type MQ struct {
Topic string
// contains filtered or unexported fields
}
func (*MQ) RegisterListener ¶
func (*MQ) StartListening ¶
func (mq *MQ) StartListening()
type Message ¶
type Message struct {
Peer Peer `bson:"peer" json:"peer"`
Topic string `bson:"topic" json:"topic"`
VN string `bson:"vn" json:"vn"`
Scope string `bson:"scope" json:"scope"`
ID string `bson:"id" json:"id"`
Data []byte `bson:"data" json:"data"`
Timestamp int64 `bson:"timestamp" json:"timestamp"`
Tag []string `bson:"tag,omitempty" json:"tag,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.