certcache

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NeverGCTicker = testingclock.NewFakeClock(time.Now()).NewTicker(0)

NeverGCTicker is a ticker that never ticks.

Functions

This section is empty.

Types

type CachedHTTPSGetter

type CachedHTTPSGetter struct {
	trust.HTTPSGetter
	// contains filtered or unexported fields
}

CachedHTTPSGetter is a HTTPS client that caches responses in memory.

func NewCachedHTTPSGetter

func NewCachedHTTPSGetter(s store, ticker clock.Ticker, log *slog.Logger) *CachedHTTPSGetter

NewCachedHTTPSGetter returns a new CachedHTTPSGetter.

func (*CachedHTTPSGetter) Get

func (c *CachedHTTPSGetter) Get(url string) ([]byte, error)

Get makes a GET request to the given URL.

Jump to

Keyboard shortcuts

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