clients

package
v0.0.0-...-f97537f Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudflareSpeedTestTransport

func NewCloudflareSpeedTestTransport() *cloudflareSpeedTestTransport

Types

type IBandwidthClient

type IBandwidthClient interface {
	RunTest(ctx context.Context, url string, testId int64, payloadLength int64, testType types.BandwidthTestType) (*types.RawBandwidthClientResult, error)
}

func NewBandwidthClient

func NewBandwidthClient(http *http.Client) IBandwidthClient

Create a new bandwidth client

type IMetadataClient

type IMetadataClient interface {
	FetchMetadata() (*types.CloudflareMetadata, error)
}

func NewMetadataClient

func NewMetadataClient(http *http.Client, urlProvider providers.IUrlProvider) IMetadataClient

Jump to

Keyboard shortcuts

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