github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/algod/healthCheck.go (about)

     1  package algod
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/algorand/go-algorand-sdk/client/v2/common"
     7  )
     8  
     9  // HealthCheck returns OK if healthy.
    10  type HealthCheck struct {
    11  	c *Client
    12  }
    13  
    14  // Do performs the HTTP request
    15  func (s *HealthCheck) Do(ctx context.Context, headers ...*common.Header) error {
    16  	return s.c.get(ctx, nil, "/health", nil, headers)
    17  }