package
Version:
v0.0.0-...-043d1ac
Opens a new window with list of versions in this module.
Published: Jul 28, 2017
License: AGPL-3.0-or-later, GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Pub/sub messaging system using mongodb tailable cursor.
type Dispatch struct {
Type string `bson:"type" json:"type"`
}
type Event struct {
Id bson.ObjectId `bson:"_id,omitempty" json:"id"`
Channel string `bson:"channel" json:"channel"`
Timestamp time.Time `bson:"timestamp" json:"timestamp"`
Data interface{} `bson:"data" json:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.