client

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientWithBaseURL

func ClientWithBaseURL(baseURL string) core.ClientOption

ClientWithBaseURL sets the client's base URL, overriding the default environment, if any.

func ClientWithHTTPClient

func ClientWithHTTPClient(httpClient core.HTTPClient) core.ClientOption

ClientWithHTTPClient uses the given HTTPClient to issue all HTTP requests.

func ClientWithHTTPHeader

func ClientWithHTTPHeader(httpHeader http.Header) core.ClientOption

ClientWithHTTPHeader adds the given http.Header to all requests issued by the client.

Types

type Client

type Client interface {
	Logging() logging.Client
	Readme() readme.Client
}

func NewClient

func NewClient(opts ...core.ClientOption) Client

Jump to

Keyboard shortcuts

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