basiccache

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoCachedResolver

type GoCachedResolver struct {
	URLResolver GoURLResolver
	Storage     sync.Map
}

GoCachedResolver caches GoURLResolver

func (*GoCachedResolver) ResolveGitHubURL

func (c *GoCachedResolver) ResolveGitHubURL(name string) (url.URL, error)

ResolveGitHubURL cached version

func (*GoCachedResolver) ResolveGitURL

func (c *GoCachedResolver) ResolveGitURL(name string) (url.URL, error)

ResolveGitURL cached version

type GoURLResolver

type GoURLResolver interface {
	ResolveGitHubURL(name string) (url.URL, error)
	ResolveGitURL(name string) (url.URL, error)
}

GoURLResolver is implementation to be cached

Jump to

Keyboard shortcuts

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