package
2.263.0
Repository: https://github.com/onsdigital/dp-api-clients-go.git
Documentation: pkg.go.dev

# Functions

New creates a new instance of Client with a given hierarchy api url.
NewErrInvalidHierarchyAPIResponse construct a new ErrInvalidHierarchyAPIResponse from the values provided.
NewWithHealthClient creates a new instance of Client, reusing the URL and Clienter from the provided health check client.

# Structs

Breadcrumb represents a breadcrumb item in the hierarchy model.
Child represents a child item in the hierarchy model.
Client is a hierarchy api client which can be used to make requests to the server.
ErrInvalidHierarchyAPIResponse is returned when the hierarchy api does not respond with a valid status.
Link represents a link within the hierarchy api.
Links represents links within the hierarchy api.
Model represents the model returned by the heirarchy api.