client.go
func (c *Client) Status() (Status, error) {
	span := c.tracer.StartSpan("Client.Status")
	defer span.Finish()

	_, data, err := c.httpRequest("GET", "/status", nil, nil, false)
	if err != nil {
		return Status{}, errors.Wrap(err, "requesting /status")
	}
	status := Status{}
	err = json.Unmarshal(data, &status)
	if err != nil {
		return Status{}, errors.Wrap(err, "unmarshaling /status data")
	}
	return status, nil
}
func (c *Client) Status() (Status, error) {
	span := c.tracer.StartSpan("Client.Status")
	defer span.Finish()

	_, data, err := c.httpRequest("GET", "/status", nil, nil, false)
	if err != nil {
		return Status{}, errors.Wrap(err, "requesting /status")
	}
	status := Status{}
	err = json.Unmarshal(data, &status)
	if err != nil {
		return Status{}, errors.Wrap(err, "unmarshaling /status data")
	}
	return status, nil
}
func ( c * Client ) Status ( ) ( Status , error ) { span := c . tracer . StartSpan ( " " ) defer span . Finish ( ) _ , data , err := c . httpRequest ( " " , " " , nil , nil , false ) if err != nil { return Status { } , errors . Wrap ( err , " " ) } status := Status { } err = json . Unmarshal ( data , & status ) if err != nil { return Status { } , errors . Wrap ( err , " " ) } return status , nil }
// Status returns the server's status.
Status returns the server s status .