github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/algod/getStatus.go (about) 1 package algod 2 3 import ( 4 "context" 5 6 "github.com/algorand/go-algorand-sdk/client/v2/common" 7 "github.com/algorand/go-algorand-sdk/client/v2/common/models" 8 ) 9 10 // Status gets the current node status. 11 type Status struct { 12 c *Client 13 } 14 15 // Do performs the HTTP request 16 func (s *Status) Do(ctx context.Context, headers ...*common.Header) (response models.NodeStatus, err error) { 17 err = s.c.get(ctx, &response, "/v2/status", nil, headers) 18 return 19 }