Documentation
¶
Index ¶
- Variables
- func BatchFullOrTimeout(runnerName string, stopped *int32, batchLen, batchSize int64, ...) bool
- func CheckNotExistFile(runnerName string, expireMap map[string]int64)
- func DeepCopyByGob(dst, src interface{})
- func DeepCopyByJSON(dst, src interface{})
- func GetFiles(runnerName, dirPath string) (map[string]string, error)
- func GetParseTestData(line string, size int) []string
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsGzipped(data []byte) bool
- func MongoDail(host string, mode string, syncTimeoutInS int64) (session *mgo.Session, err error)
- func SetMode(s *mgo.Session, modeFriendly string, refresh bool)
- func UpdateExpireMap(runnerName string, fileMap map[string]string, expireMap map[string]int64)
- func WriteZipToFile(zipf *zip.File, filename string) error
- type Backoff
- type Collection
- type MongoConfig
- type Stage
- type Tracker
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONTool = jsoniter.Config{UseNumber: true}.Froze()
Functions ¶
func BatchFullOrTimeout ¶
func CheckNotExistFile ¶
func DeepCopyByGob ¶
func DeepCopyByGob(dst, src interface{})
func DeepCopyByJSON ¶
func DeepCopyByJSON(dst, src interface{})
func IsExist ¶
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
func IsGzipped ¶
gzip 前两位是固定的: https://stackoverflow.com/questions/6059302/how-to-check-if-a-file-is-gzip-compressed
func UpdateExpireMap ¶
Types ¶
type Collection ¶
type Collection struct {
*mgo.Collection
}
func (Collection) CloseSession ¶
func (c Collection) CloseSession() (err error)
type MongoConfig ¶
Click to show internal directories.
Click to hide internal directories.