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) 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 ¶
Click to show internal directories.
Click to hide internal directories.