Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &types.GnsConfig{ Timeout: 10 * time.Second, }
Functions ¶
func ParseResponse ¶
func ParseResponse(resp *http.Response) (types.RawResponse, error)
ParseResponse parses the HTTP response into types.RawResponse. This is primarily used for the Stats API. Caution: remember to close resp.Body in the caller function.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
type IHttpClient ¶
func NewHttpClient ¶
func NewHttpClient(config *types.GnsConfig) IHttpClient
Click to show internal directories.
Click to hide internal directories.