Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkHealth (0.06 sec)

  1. cmd/healthcheck-handler.go

    package cmd
    
    import (
    	"context"
    	"net/http"
    	"strconv"
    	"time"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/kms"
    )
    
    const unavailable = "offline"
    
    func checkHealth(w http.ResponseWriter) ObjectLayer {
    	objLayer := newObjectLayerFn()
    	if objLayer == nil {
    		w.Header().Set(xhttp.MinIOServerStatus, unavailable)
    		writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
    		return nil
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top