Documentation ¶
Index ¶
- Constants
- Variables
- func BpInsertOne(market, cur, top string, bp bool)
- func FilterBp(filter *bson.Document) (r []*bson.Document)
- func Filterlow(filter *bson.Document) (r []*bson.Document)
- func LowInsertOne(market, cur, low string, bp bool)
- func MakeDoc(doc []map[string]interface{}) *bson.Document
- func MarketAll() (r []*bson.Document)
- func MarketInsertOne(market string)
- func New()
- type MongoManager
Constants ¶
View Source
const DB = "Monitor"
Variables ¶
View Source
var ColMap = make(map[string]*mongo.Collection)
Functions ¶
func BpInsertOne ¶
func LowInsertOne ¶
func MarketInsertOne ¶
func MarketInsertOne(market string)
Types ¶
type MongoManager ¶
var Mgo *MongoManager
func (*MongoManager) Use ¶
func (mgo *MongoManager) Use(collection string) *mongo.Collection
Click to show internal directories.
Click to hide internal directories.