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 ¶ added in v1.5.4
func CheckNotExistFile ¶ added in v1.5.4
func DeepCopyByGob ¶ added in v1.5.4
func DeepCopyByGob(dst, src interface{})
func DeepCopyByJSON ¶ added in v1.5.4
func DeepCopyByJSON(dst, src interface{})
func GetParseTestData ¶ added in v1.5.3
获取测试数据
func IsExist ¶ added in v1.5.2
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
func IsGzipped ¶ added in v1.5.4
gzip 前两位是固定的: https://stackoverflow.com/questions/6059302/how-to-check-if-a-file-is-gzip-compressed
func UpdateExpireMap ¶ added in v1.5.4
Types ¶
type Backoff ¶ added in v1.5.5
type Backoff struct {
// contains filtered or unexported fields
}
func NewBackoff ¶ added in v1.5.5
func (*Backoff) ForAttempt ¶ added in v1.5.5
type Collection ¶
type Collection struct {
*mgo.Collection
}
func (Collection) CloseSession ¶
func (c Collection) CloseSession() (err error)
type MongoConfig ¶
type Tracker ¶ added in v1.5.4
func NewTracker ¶ added in v1.5.4
func NewTracker() *Tracker
Click to show internal directories.
Click to hide internal directories.