Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Hostname string
}
Client describes a client which makes requests to an external API
func (Client) GetHello ¶
func (c Client) GetHello() (*HelloResponse, error)
GetHello calls the hello endpoint from the external API and returns the response if successful, or an error otherwise.
type HelloResponse ¶
type HelloResponse struct {
Message string `json:"message"`
}
HelloResponse describes a successful response to the hello endpoint
Click to show internal directories.
Click to hide internal directories.