Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EncodingConfig params.EncodingConfig Cdc codec.Codec )
Functions ¶
func UnmarshalResponse ¶
func UnmarshalResponse(resp *APIResponse, v interface{}) error
UnmarshalResponse unmarshals the response body into the given interface
func WritePublicFile ¶
Types ¶
type APIClient ¶
APIClient provides methods for making API requests
func NewAPIClient ¶
NewAPIClient creates a new API client with the given base URL
func (*APIClient) GetWithHeaders ¶
func (c *APIClient) GetWithHeaders(endpoint string, headers map[string]string) (*APIResponse, error)
GetWithHeaders sends a GET request and returns the response, allowing custom headers
type APIResponse ¶
APIResponse wraps the standard HTTP response for API calls
Click to show internal directories.
Click to hide internal directories.