events

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 5 Imported by: 0

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