warmup

package module
v0.0.0-...-2f29c07 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 11 Imported by: 0

README

cloudfront-warmup

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Warmup

func Warmup(domainName string, event events.S3Event) error

Types

type HttpClient

type HttpClient interface {
	Get(uri string) (*http.Response, error)
}

type HttpClientFactory

type HttpClientFactory interface {
	Get(ip net.IP) HttpClient
}

type MyHttpClientFactory

type MyHttpClientFactory struct {
}

func (*MyHttpClientFactory) Get

func (f *MyHttpClientFactory) Get(ip net.IP) HttpClient

type MyNetLookup

type MyNetLookup struct {
}

func (*MyNetLookup) LookupIP

func (l *MyNetLookup) LookupIP(host string) ([]net.IP, error)

type NetLookup

type NetLookup interface {
	LookupIP(host string) ([]net.IP, error)
}

Jump to

Keyboard shortcuts

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