Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBatchNum ¶
func GetBatchNum() string
Types ¶
type CollectionAccumulator ¶
type CollectionAccumulator struct { CollectionGroupData map[string]*ProductBatch `json:"collectionGroupData"` // contains filtered or unexported fields }
func (*CollectionAccumulator) AddCollectionBatch ¶
func (collectionAccumulator *CollectionAccumulator) AddCollectionBatch(project, setName string, kv interface{})
type IoWorkerPool ¶
type IoWorkerPool struct {
// contains filtered or unexported fields
}
type Product ¶
type Product struct {
// contains filtered or unexported fields
}
func InitProduct ¶
func InitProduct(productConfig *ProductConfig, engine string, injectionEngine jkinterface.ProductClientInterface) *Product
injectionEngine used to open to developers to implement their own engine, it is not required To use, enable the injection engine in the producer's configuration
func (*Product) SendCollection ¶
type ProductBatch ¶
type ProductBatch struct { CollectionGroup *Kv.CollectionGroup `json:"collection_group"` TotalNum int64 //最多10个 // contains filtered or unexported fields }
type ProductConfig ¶
type ProductConfig struct { MaxBatchCount int MaxIoWorkerCount int64 LingerMs int64 ExtMap map[string]string IsInjectionEngine bool //是否注入引擎 }
func GetDefaultProductConfig ¶
func GetDefaultProductConfig() *ProductConfig
Click to show internal directories.
Click to hide internal directories.