client

package
v62.0.0-...-eaec136 Latest Latest
Warning

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

Go to latest
Published: Aug 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 {
	//request.Retryer
	metadata.ClientInfo

	Config config.Config
}

A Client implements the base client request and response handling used by all service clients.

func New

func New(cfg config.Config, info metadata.ClientInfo) *Client

func (*Client) NewRequest

func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request

NewRequest returns a new Request pointer for the service API operation and parameters.

type ConfigProvider

type ConfigProvider interface {
	ClientConfig(serviceName string, cfgs ...*config.Config) config.Config
}

ConfigProvider provides a generic way for a service client to receive the ClientConfig without circular dependencies.

type Options

type Options struct {
	Config         config.Config
	CustomCABundle io.Reader
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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