func()

in config.go [329:340]


func (cfg BulkIndexerConfig) Validate() error {
	var errs []error
	if cfg.Client == nil {
		errs = append(errs, fmt.Errorf("bulk_indexer: client is required"))
	}
	if cfg.CompressionLevel < -1 || cfg.CompressionLevel > 9 {
		errs = append(errs, fmt.Errorf("expected CompressionLevel in range [-1,9], got %d",
			cfg.CompressionLevel,
		))
	}
	return errors.Join(errs...)
}