storage

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiskStorage

func NewDiskStorage(limit int, paths ...string) (*diskStorage, error)

NewDiskStorage creates the storage folder, verifies that it is writable and retains at most limit traces. A limit of zero or less is unbounded. With no path it uses a folder in the operating system temporary directory. The ring holds what the returned storage records.

func NewMemoryStorage

func NewMemoryStorage(size int) *memoryStorage

NewMemoryStorage returns in-memory storage retaining size traces. A size of zero or less retains nothing, leaving the live view and the counters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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