Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Emitter ¶
type Emitter interface { // Emit an alert, preferably in a synchronous way. // // pairs should always be an even number. Emit(pairs ...string) }
Emitter is implemented by alert sink.
func NewTestEmitter ¶
NewTextEmitter returns an emitter that logs entries in a plain text format into given testing object.
func NewTextEmitter ¶
NewTextEmitter returns an emitter that writes entries in a plain text format. Pairs order is preserved and written as provided to Emit method.
func UsedEmitter ¶
UsedEmitter returns alert emitter present in the context or a no-op implementation.
Click to show internal directories.
Click to hide internal directories.