probes

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func New

func New(client *redis.Client, c clockwork.Clock) *Repository

func (*Repository) Add

func (r *Repository) Add(ctx context.Context, prb probe.Probe) error

func (*Repository) AddBetween

func (r *Repository) AddBetween(ctx context.Context, prb probe.Probe, after time.Time, before time.Time) error

func (*Repository) Count

func (r *Repository) Count(ctx context.Context) (int, error)

func (*Repository) Peek

func (r *Repository) Peek(ctx context.Context) (probe.Probe, error)

func (*Repository) Pop

func (r *Repository) Pop(ctx context.Context) (probe.Probe, error)

func (*Repository) PopMany

func (r *Repository) PopMany(ctx context.Context, count int) ([]probe.Probe, int, error)

Jump to

Keyboard shortcuts

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