Documentation ¶
Index ¶
- type AvailabilityResponse
- type Client
- func (c *Client) Availability(campgroundID string, start, end time.Time) (models.Campsites, error)
- func (c *Client) Do(path string, queryParams url.Values) (*http.Response, error)
- func (c *Client) Poll(ctx context.Context, campgroundID string, start, end time.Time, ...) (models.Campsites, error)
- func (c *Client) Search(query string) ([]models.Campground, error)
- type SearchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an HTTP client that interacts with the recreation.gov API.
func (*Client) Availability ¶
type SearchResponse ¶
type SearchResponse struct {
Campgrounds []models.Campground `json:"inventory_suggestions"`
}
Click to show internal directories.
Click to hide internal directories.