Versions in this module Expand all Collapse all v0 v0.9.1 Nov 25, 2026 v0.9.0 Nov 24, 2026 v0.8.0 Nov 24, 2026 Changes in this version + const FeedPath + const ScriptPath + func Origin(raw string) (string, error) + func RecordRoute(next http.Handler, catchAll ...string) http.Handler + func Recorder(next http.Handler) http.Handler + func SetAccount(ctx context.Context, id string) + func SetError(ctx context.Context, code string) + func SetOp(ctx context.Context, op string) + type Config struct + Endpoint string + Key string + Site string + type Emitter struct + func Start(cfg Config, log *slog.Logger) *Emitter + func (e *Emitter) Enqueue(ev Event) + func (e *Emitter) Shutdown(ctx context.Context) error + func (e *Emitter) Stats() Stats + type Event struct + Account string + Bytes int64 + CHUA string + DurMS int64 + Err string + IP string + Lang string + Method string + Op string + Path string + Ref string + Route string + SFDest string + SFMode string + SFSite string + SigAgent string + Status int + T int64 + UA string + func EventFrom(r *http.Request, ip string, status int, dur time.Duration) Event + type Feed interface + Enqueue func(Event) + type Settings struct + Feed *Config + Origin string + func Resolve(rawURL, key, site, defaultSite string) (Settings, []string) + type Stats struct + Dropped uint64 + Failed uint64 + Sent uint64