Documentation
¶
Overview ¶
Package ateomstatstest records the usage records an ateom writes, for tests.
Index ¶
- type Recorder
- func (r *Recorder) Enabled(context.Context, slog.Level) bool
- func (r *Recorder) Handle(_ context.Context, rec slog.Record) error
- func (r *Recorder) Kinds() []string
- func (r *Recorder) Sources() []string
- func (r *Recorder) WithAttrs([]slog.Attr) slog.Handler
- func (r *Recorder) WithGroup(string) slog.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder is a stdout handler that keeps the kind and source of each record.
func NewEmitter ¶
func NewEmitter() (*ateomstats.UsageEmitter, *Recorder)
NewEmitter returns an emitter that writes every record to a new Recorder.
Click to show internal directories.
Click to hide internal directories.