Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataLayer ¶
type DataLayer interface {
Run(cmd interface{}, result interface{}) error
}
DataLayer is an interface to access to the database struct.
type MongoDB ¶
type MongoDB struct { Server string Timeout int64 Tags []string AdditionalMetrics []string `yaml:"additional_metrics"` }
MongoDB XXX
type MongoSession ¶
MongoSession is currently a Mongo session.
func (MongoSession) DB ¶
func (s MongoSession) DB(name string) DataLayer
DB shadows *mgo.DB to returns a DataLayer interface instead of *mgo.Database.
type ReplSetMember ¶
type ReplSetMember struct { Name string `bson:"name"` Health int64 `bson:"health"` State int64 `bson:"state"` StateStr string `bson:"stateStr"` OptimeDate time.Time `bson:"optimeDate"` Self bool `bson:"self"` }
ReplSetMember stores information related to a replica set member
type ReplSetStatus ¶
type ReplSetStatus struct { Members []ReplSetMember `bson:"members"` MyState int64 `bson:"myState"` }
ReplSetStatus stores information from replSetGetStatus
Click to show internal directories.
Click to hide internal directories.