Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisClient ¶
RedisClient returns a redis client to the URL specified in the REDIS_URL env var
func SeedTestDB ¶
SeedTestDB clears the testing DB and then re-seeds it with the given records. Returns an mgo.Database for doing any additional setup or assertions.
The givens records is a map of [collection name] -> [array of records]
func SortOTRMessagesByID ¶
func SortOTRMessagesByID(msgs []OTRMessage)
SortOTRMessagesByID sorts a slice of OTRMessage by ID (for order-insensitive comparisons)
Types ¶
type OTRMessage ¶
type OTRMessage struct { Event string `json:"e"` Document map[string]interface{} `json:"d"` Fields []string `json:"f"` }
OTRMessage is a message published by OTR to Redis
Click to show internal directories.
Click to hide internal directories.