Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConnectTimeOut = 60 StatusSuccess = "Success" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MgoCmd ¶
type MgoCmd interface { Insert(args interface{}) error Update(condition interface{}, args interface{}) error UpdateByID(id string, args interface{}) error UpdateAll(condition interface{}, args interface{}) (*mgo.ChangeInfo, error) Upsert(condition interface{}, args interface{}) (*mgo.ChangeInfo, error) FindByID(id string) Query Find(interface{}) Query Delete(condition interface{}) error DeleteAll(condition interface{}) (*mgo.ChangeInfo, error) DeleteByID(id string) error }
Click to show internal directories.
Click to hide internal directories.