client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package client provides an HTTP client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client holds a base URL for HTTP GET calls.

func NewClient

func NewClient(baseURL string) Client

NewClient initializes a Client struct.

func (Client) MakeRequest

func (c Client) MakeRequest(endpoint string) (*http.Response, error)

MakeRequest makes an HTTP GET request for the given endpoint.

Jump to

Keyboard shortcuts

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