Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Conn *mgo.Session Conf MongoConf }
mongodb client struct
func (*Client) GetOplogsDelete ¶
func (c *Client) GetOplogsDelete() []OplogDelete
return all deleted oplog objects
func (*Client) GetOplogsInsert ¶
func (c *Client) GetOplogsInsert() []OplogInsert
return all inserted oplog objects
func (*Client) GetOplogsUpdate ¶
func (c *Client) GetOplogsUpdate() []OplogUpdate
return all updated oplog objects
type MongoConf ¶
type MongoConf struct { Server string Port string User string Pass string Database string Collection string }
mongodb config struct
type Oplog ¶
type Oplog struct { Ts int64 `bson:"ts"` H int `bson:"h"` V int `bson:"v"` Op string `bson:"op"` Ns string `bson:"ns"` }
base struct of Oplog
type OplogDelete ¶
type OplogInsert ¶
struct of Oplog insert object
Click to show internal directories.
Click to hide internal directories.