Documentation
¶
Index ¶
- func DeepCopyByJSON(dst, src interface{})
- func GetParseTestData(line string, size int) []string
- func IsExist(path string) bool
- func MongoDail(host string, mode string, syncTimeoutInS int64) (session *mgo.Session, err error)
- func SetMode(s *mgo.Session, modeFriendly string, refresh bool)
- type Collection
- type MongoConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExist ¶
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
Types ¶
type Collection ¶
type Collection struct {
*mgo.Collection
}
func (Collection) CloseSession ¶
func (c Collection) CloseSession() (err error)
Click to show internal directories.
Click to hide internal directories.