coalesced

package
v0.0.0-...-f68f6f9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver is a urlresolver.Interface implementation that coalesces concurrent requests to upstream URLs.

func New

func New(resolver urlresolver.Interface) *Resolver

New creates a new coalesced Resolver.

func (*Resolver) Resolve

func (c *Resolver) Resolve(ctx context.Context, givenURL string) (urlresolver.Result, error)

Resolve resolves a URL if it is not already cached.

Jump to

Keyboard shortcuts

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