sampled_err

package
v0.0.0-...-a568277 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentErrors

type ConcurrentErrors interface {
	Add(error)
	GetTotalCount() int
	Error() string
}

A thread-safe version of Errors.

func NewConcurrentErrors

func NewConcurrentErrors(sampleCount int) ConcurrentErrors

type Errors

type Errors struct {
	Samples     []error
	SampleCount int
	TotalCount  int
}

Samples up to SampleCount errors.

func (*Errors) Add

func (es *Errors) Add(e error)

func (Errors) Error

func (es Errors) Error() string

Jump to

Keyboard shortcuts

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