api

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL