errcache

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustSize

func AdjustSize()

func Init

func Init()

Types

type ErrCache

type ErrCache struct {
	// contains filtered or unexported fields
}
var DownloadErrors *ErrCache

func NewErrCache

func NewErrCache(expiration time.Duration) *ErrCache

func (*ErrCache) Get

func (e *ErrCache) Get(key string) error

func (*ErrCache) Resize

func (e *ErrCache) Resize(expiration time.Duration)

func (*ErrCache) Set

func (e *ErrCache) Set(key string, err error)

Jump to

Keyboard shortcuts

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