job/queue.go
func NewConfig() *Config {
	return &Config{
		CollectJobs:   100,
		CollectPeriod: 1000,
		WorkerBufLen:  10,
		Workers:       0,

		TypeConfig: TypeConfig{
			TryLimit:  3,
			TryPeriod: 60000,
		},
		Types: make(map[string]TypeConfig),
	}
}
func NewConfig() *Config {
	return &Config{
		CollectJobs:   100,
		CollectPeriod: 1000,
		WorkerBufLen:  10,
		Workers:       0,

		TypeConfig: TypeConfig{
			TryLimit:  3,
			TryPeriod: 60000,
		},
		Types: make(map[string]TypeConfig),
	}
}
func NewConfig ( ) * Config { return & Config { CollectJobs : 100 , CollectPeriod : 1000 , WorkerBufLen : 10 , Workers : 0 , TypeConfig : TypeConfig { TryLimit : 3 , TryPeriod : 60000 , } , Types : make ( map [ string ] TypeConfig ) , } }
// NewConfig creates a default job queue configuration.
NewConfig creates a default job queue configuration .