capture

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package capture is a test-only metering recorder; Entries and Reset are testing helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

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

func New

func New() *Recorder

func (*Recorder) Emit

func (r *Recorder) Emit(_ context.Context, e metering.Entry)

func (*Recorder) Entries

func (r *Recorder) Entries() []metering.Entry

Entries returns a snapshot copy; callers may mutate the returned slice.

func (*Recorder) Reset

func (r *Recorder) Reset()

Jump to

Keyboard shortcuts

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