Versions in this module Expand all Collapse all v0 v0.5.0 Nov 5, 2026 v0.4.0 Nov 5, 2026 Changes in this version + const DefaultSocket + const MessageID + const Schema + var ErrInvalid = errors.New("problems: invalid record") + func DecodeEntry(b []byte) (map[string]string, error) + func MapFrame(name string) string + type Component string + const ComponentCLI + const ComponentDaemon + const ComponentGUI + const ComponentOther + const ComponentShell + type Detail struct + AppID string + AppVersion string + Class string + Code string + Component string + Frames []string + Location string + Runtime string + func Validate(fields map[string]string) (Detail, error) + type Option func(*Recorder) + func WithSocket(path string) Option + type ReadOptions struct + Journalctl string + Limit int + Since time.Time + User bool + type Record struct + Detail Detail + Message string + Trusted Trusted + type Recorder struct + func New(appID, version string, component Component, opts ...Option) *Recorder + func (r *Recorder) CrashOutput() error + func (r *Recorder) Err() error + func (r *Recorder) Error(code string, err error) + func (r *Recorder) RecoverPanic() + type Result struct + Dropped int + Records []Record + func ParseJSON(r io.Reader) (Result, error) + func Read(context.Context, ReadOptions) (Result, error) + func Read(ctx context.Context, opts ReadOptions) (Result, error) + type Trusted struct + Comm string + Cursor string + SystemdUnit string + SystemdUserUnit string + Time time.Time + UID string