transport

package
v5.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...interface{}) http.RoundTripper

New creates a new default http transport with the passed transport and round-trip options.

func NewFrontSessionTokenProvider

func NewFrontSessionTokenProvider(c *cellssdk.SdkConfig) (cellssdk.TokenProvider, error)

func NewHttpClient

func NewHttpClient(sdkConfig *cellssdk.SdkConfig, options ...interface{}) *http.Client

NewHttpClient creates a custom HTTP client that has correct TLS skip verify flag and defined custom headers. Caller can provide additional options, typically to set a custom timeout.

func TokenProviderFromConfig

func TokenProviderFromConfig(c *cellssdk.SdkConfig) (cellssdk.TokenProvider, error)

Types

type FrontSessionTokenProvider

type FrontSessionTokenProvider struct {
	// contains filtered or unexported fields
}

func (*FrontSessionTokenProvider) Expired

func (f *FrontSessionTokenProvider) Expired() bool

func (*FrontSessionTokenProvider) ExpiresAt

func (f *FrontSessionTokenProvider) ExpiresAt() time.Time

func (*FrontSessionTokenProvider) Retrieve

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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