base

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthenticatorFromEnvironment

func GetAuthenticatorFromEnvironment(credentialKey string) (core.Authenticator, error)

GetAuthenticatorFromEnvironment instantiates an Authenticator using service properties retrieved from external config sources.

Types

type BaseService

type BaseService struct {
	*core.BaseService
	// contains filtered or unexported fields
}

func NewBaseService

func NewBaseService(opts *core.ServiceOptions) (*BaseService, error)

func (*BaseService) Clone

func (c *BaseService) Clone() *BaseService

func (*BaseService) Request

func (c *BaseService) Request(req *http.Request, result interface{}) (detailedResponse *core.DetailedResponse, err error)

func (*BaseService) SetHTTPClient

func (c *BaseService) SetHTTPClient(client *http.Client)

SetHTTPClient will set "client" as the http.Client instance to be used to invoke individual HTTP requests. If automatic retries are currently enabled on "service", then "client" will be set as the embedded client instance within the retryable client; otherwise "client" will be stored directly on "service".

func (*BaseService) SetServiceURL

func (c *BaseService) SetServiceURL(url string) error

Jump to

Keyboard shortcuts

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