cache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	validation.LicenseResolver
}

Cacher covers all interfaces which calls should be cached

type Direct

type Direct struct {
	validation.LicenseResolver
}

type MemoryCache

type MemoryCache struct {
	Backed Cacher
	// contains filtered or unexported fields
}

MemoryCache is a simple in-memory cache that holds license for project version It's needed because sometimes license recognition takes a lot of time

func (*MemoryCache) ResolveLicense

func (c *MemoryCache) ResolveLicense(ctx context.Context, m validation.Module) (validation.License, error)

Jump to

Keyboard shortcuts

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