Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for max_entries (0.35 sec)

  1. internal/event/target/elasticsearch.go

    }
    
    func newClientV7(args ElasticsearchArgs) (*esClientV7, error) {
    	// Client options
    	elasticConfig := elasticsearch7.Config{
    		Addresses:  []string{args.URL.String()},
    		Transport:  args.Transport,
    		MaxRetries: 10,
    	}
    	// Set basic auth
    	if args.Username != "" && args.Password != "" {
    		elasticConfig.Username = args.Username
    		elasticConfig.Password = args.Password
    	}
    	// Create a client
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. cmd/os_other.go

    	if err != nil {
    		return nil, osErrToFileErr(err)
    	}
    	defer d.Close()
    
    	maxEntries := 1000
    	if opts.count > 0 && opts.count < maxEntries {
    		maxEntries = opts.count
    	}
    
    	done := false
    	remaining := opts.count
    
    	for !done {
    		// Read up to max number of entries.
    		fis, err := d.Readdir(maxEntries)
    		if err != nil {
    			if err == io.EOF {
    				break
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top