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)
Click to show internal directories.
Click to hide internal directories.