stat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package stat provides a cache wrapper that logs statistics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache is a cache wrapper that logs statistics.

func New

func New(c cache.Cache, l *slog.Logger) *Cache

New creates a new Cache.

func (*Cache) Close

func (c *Cache) Close() error

Close implements cache.Cache.

func (*Cache) FuzzDir

func (c *Cache) FuzzDir() string

FuzzDir implements cache.Cache.

func (*Cache) Get

func (c *Cache) Get(id cache.ActionID) (cache.Entry, error)

Get implements cache.Cache.

func (*Cache) OutputFile

func (c *Cache) OutputFile(id cache.OutputID) string

OutputFile implements cache.Cache.

func (*Cache) Put

func (c *Cache) Put(id cache.ActionID, rs io.ReadSeeker) (cache.OutputID, int64, error)

Put implements cache.Cache.

Jump to

Keyboard shortcuts

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