Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for Readlink (0.23 sec)

  1. cmd/admin-handlers.go

    		healthInfo.Error = string(encodedErrorResponse)
    		adminLogIf(ctx, enc.Encode(healthInfo))
    	}
    
    	deadline := 10 * time.Second // Default deadline is 10secs for health diagnostics.
    	if dstr := query.Get("deadline"); dstr != "" {
    		var err error
    		deadline, err = time.ParseDuration(dstr)
    		if err != nil {
    			errResp(err)
    			return
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  2. internal/ioutil/ioutil.go

    }
    
    type ioret[V any] struct {
    	val V
    	err error
    }
    
    // DeadlineWriter deadline writer with timeout
    type DeadlineWriter struct {
    	io.WriteCloser
    	timeout time.Duration
    	err     error
    }
    
    // WithDeadline will execute a function with a deadline and return a value of a given type.
    // If the deadline/context passes before the function finishes executing,
    // the zero value and the context error is returned.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. cmd/callhome.go

    		}
    	}
    }
    
    func performCallhome(ctx context.Context) {
    	deadline := 10 * time.Second // Default deadline is 10secs for callhome
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil {
    		internalLogIf(ctx, errors.New("Callhome: object layer not ready"))
    		return
    	}
    
    	healthCtx, healthCancel := context.WithTimeout(ctx, deadline)
    	defer healthCancel()
    
    	healthInfoCh := make(chan madmin.HealthInfo)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.1K bytes
    - Viewed (1)
  4. src/bufio/bufio_test.go

    	}
    
    	line, isPrefix, err := l.ReadLine()
    	if err != io.EOF {
    		t.Errorf("expected EOF from ReadLine, got '%s' %t %s", line, isPrefix, err)
    	}
    }
    
    func TestReadLineNonNilLineOrError(t *testing.T) {
    	r := NewReader(strings.NewReader("line 1\n"))
    	for i := 0; i < 2; i++ {
    		l, _, err := r.ReadLine()
    		if l != nil && err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
Back to top