Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Events ¶ added in v1.14.0
Events is a list of events captured by fxlog.Spy.
func (Events) SelectByTypeName ¶ added in v1.14.0
SelectByTypeName returns a new list with only events matching the specified type.
type Spy ¶ added in v1.11.0
type Spy struct {
// contains filtered or unexported fields
}
Spy is an Fx event logger that captures emitted events and/or logged statements. It may be used in tests of Fx logs.
func (*Spy) EventTypes ¶ added in v1.14.0
EventTypes returns all captured event types.
Click to show internal directories.
Click to hide internal directories.