api

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// URL returns the location of the specified endpoint
	URL(endpoint string) *url.URL
	// Do performs the interaction specified by the HTTP request
	Do(context.Context, *http.Request) (*http.Response, []byte, error)
}

Client is used to handle interactions with the API Server.

func NewClient

func NewClient(address string, transport http.RoundTripper) (Client, error)

NewClient returns a new client for accessing API server.

Directories

Path Synopsis
experiments

Jump to

Keyboard shortcuts

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