Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
Status int
Data interface{}
}
APIResponse is a data structure encapsulating the return from an api endpoint
type Endpoint ¶
type Endpoint struct {
URL string `mapstructure:"url"`
Method string `mapstructure:"method"`
Auth string `mapstructure:"auth"`
// contains filtered or unexported fields
}
Endpoint is a single API endpoint/resource
type EndpointMap ¶
EndpointMap maps keys to api endpoints
func (EndpointMap) Call ¶
func (m EndpointMap) Call(endpoint, subPath, query, requestBody string) (*APIResponse, error)
Call the endpoint from the map with the provided arguments
Click to show internal directories.
Click to hide internal directories.