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
Click to show internal directories.
Click to hide internal directories.