auth

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRuntime

func NewRuntime(ctx context.Context, clientID string, clientSecret string, apiHost string, version string) (*httptransport.Runtime, error)

NewRuntime creates a new runtime that represents an API client that uses the transport to make HTTP requests based on a swagger specification.

Types

type UserAgentTransport

type UserAgentTransport struct {
	http.RoundTripper
	// contains filtered or unexported fields
}

UserAgentTransport is an http RoundTripper that sets a descriptive User-Agent header for all StackPath API requests.

func NewUserAgentTransport

func NewUserAgentTransport(parent http.RoundTripper, providerVersion string) *UserAgentTransport

NewUserAgentTransport builds a new UserAgentTransport around the underlying RoundTripper.

func (*UserAgentTransport) RoundTrip

func (t *UserAgentTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the http.RoundTripper interface, setting a User-Agent header on the HTTP request.

Jump to

Keyboard shortcuts

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