events

package
v0.0.6-firefox.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Time  time.Time
	Event qlogwriter.Event
}

Event is a recorded event with the event time.

type Recorder

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

Recorder is a qlog.Recorder that records events. Events can be retrieved using the Events method.

func (*Recorder) Clear

func (r *Recorder) Clear()

Clear clears the recorded events.

func (*Recorder) Close

func (r *Recorder) Close() error

func (*Recorder) Events

func (r *Recorder) Events(filter ...qlogwriter.Event) []qlogwriter.Event

Events returns all recorded events, including the event time. If filter is provided, only events of the given type(s) are returned.

func (*Recorder) EventsWithTime

func (r *Recorder) EventsWithTime(filter ...qlogwriter.Event) []Event

func (*Recorder) RecordEvent

func (r *Recorder) RecordEvent(ev qlogwriter.Event)

Events returns all recorded events. If filter is provided, only events of the given type(s) are returned.

type Trace

type Trace struct {
	Recorder qlogwriter.Recorder
}

Trace is a qlog.Trace that returns a qlog recorder.

func (*Trace) AddProducer

func (t *Trace) AddProducer() qlogwriter.Recorder

func (*Trace) SupportsSchemas

func (t *Trace) SupportsSchemas(string) bool

Jump to

Keyboard shortcuts

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