Versions in this module Expand all Collapse all v0 v0.1.0 Oct 24, 2026 Changes in this version + const Binding + var EntryTypes = []EntryType + func Auth(fn func(ctx http.Context) bool) + func Dump(values ...any) + func DumpContext(ctx context.Context, values ...any) + func Filter(fn func(e *Entry) bool) + func LogDriver() log.Logger + func Record(ctx context.Context, e *Entry) + func RecordRedis(ctx context.Context, connection, command string, duration time.Duration, ...) + func RegisterWatcher(w Watcher) + func ResolveUser(fn func(ctx http.Context) *User) + func SetRecorder(r *Recorder) + func Tag(fn func(e *Entry) []string) + func Transport(base http.RoundTripper) http.RoundTripper + func WatchGate(gate access.Gate) + func WithBatch(ctx context.Context, b *Batch) context.Context + func WrapArtisan(a console.Artisan) console.Artisan + func WrapCache(c cache.Cache) cache.Cache + func WrapEvent(e event.Instance) event.Instance + func WrapHttp(f client.Factory) client.Factory + func WrapMail(m mail.Mail) mail.Mail + func WrapQueue(q queue.Queue) queue.Queue + func WrapSchedule(s schedule.Schedule, artisan console.Artisan) schedule.Schedule + type Batch struct + ID string + func (b *Batch) Tag(tags ...string) + type CacheWatcher struct + HiddenKeys []string + func (CacheWatcher) Name() string + func (CacheWatcher) Register(foundation.Application) error + type ClearCommand struct + func (c *ClearCommand) Description() string + func (c *ClearCommand) Extend() command.Extend + func (c *ClearCommand) Handle(ctx console.Context) error + func (c *ClearCommand) Signature() string + type ClientRequestWatcher struct + func (ClientRequestWatcher) Name() string + func (ClientRequestWatcher) Register(foundation.Application) error + type Column struct + Field string + Label string + type CommandWatcher struct + func (CommandWatcher) Name() string + func (CommandWatcher) Register(foundation.Application) error + type Config struct + AllowedUsers map[string][]string + Connection string + CustomWatchers []Watcher + Driver string + Enabled bool + Environment string + ExceptionsFromLogs bool + FlushInterval time.Duration + HiddenCacheKeys []string + HiddenRequestHeaders []string + HiddenRequestParameters []string + HiddenResponseHeaders []string + HiddenResponseParameters []string + IgnoreAbilities []string + IgnoreCommands []string + IgnorePaths []string + IgnoreStatusCodes []int + Key string + LogLevel string + Middleware []DashboardMiddleware + Path string + QueryConnections []string + QueueSize int + ResponseSizeLimit int + SessionLifetime time.Duration + SlowQuery time.Duration + TokenStorageKey string + Watchers map[EntryType]bool + type Dashboard struct + func NewDashboard(r *Recorder) *Dashboard + func (d *Dashboard) Serve(ctx http.Context, path string) + type DashboardMiddleware func(ctx http.Context) bool + func AllowEmails(emails ...string) DashboardMiddleware + func AllowUsers(field string, values ...string) DashboardMiddleware + func Authorize() DashboardMiddleware + type DatabaseStorage struct + func NewDatabaseStorage(o orm.Orm, connection string) *DatabaseStorage + func (s *DatabaseStorage) Clear(ctx context.Context) error + func (s *DatabaseStorage) Counts(ctx context.Context) (map[EntryType]int64, error) + func (s *DatabaseStorage) Find(ctx context.Context, id string) (*Entry, error) + func (s *DatabaseStorage) Get(ctx context.Context, q Query) ([]*Entry, error) + func (s *DatabaseStorage) Monitor(ctx context.Context, tags []string) error + func (s *DatabaseStorage) MonitoredTags(ctx context.Context) ([]string, error) + func (s *DatabaseStorage) Occurrences(ctx context.Context, familyHash string) (int64, error) + func (s *DatabaseStorage) Prune(ctx context.Context, before time.Time) (int64, error) + func (s *DatabaseStorage) Store(ctx context.Context, entries []*Entry) error + func (s *DatabaseStorage) Unmonitor(ctx context.Context, tags []string) error + type Describer interface + Describe func() WatcherInfo + type DumpWatcher struct + func (DumpWatcher) Name() string + func (DumpWatcher) Register(foundation.Application) error + type Entry struct + BatchID string + Content map[string]any + CreatedAt time.Time + DisplayOnIndex bool + FamilyHash string + Sequence int64 + Tags []string + Type EntryType + UUID string + func NewEntry(t EntryType, content map[string]any) *Entry + func (e *Entry) AddTags(tags ...string) + func (e *Entry) HasTag(tag string) bool + type EntryType string + const TypeCache + const TypeClientRequest + const TypeCommand + const TypeDump + const TypeEvent + const TypeException + const TypeGate + const TypeJob + const TypeLog + const TypeMail + const TypeModel + const TypeQuery + const TypeRedis + const TypeRequest + const TypeSchedule + type EventWatcher struct + func (EventWatcher) Name() string + func (EventWatcher) Register(foundation.Application) error + type ExceptionWatcher struct + IgnoreErrorLogs bool + func (ExceptionWatcher) Name() string + func (ExceptionWatcher) Register(foundation.Application) error + type Frame struct + File string + Function string + Line int + type GateWatcher struct + IgnoreAbilities []string + func (GateWatcher) Name() string + func (GateWatcher) Register(foundation.Application) error + type GormPlugin struct + Connection string + func (GormPlugin) Name() string + func (p GormPlugin) Initialize(db *gorm.DB) error + type JobWatcher struct + func (JobWatcher) Name() string + func (JobWatcher) Register(foundation.Application) error + type LogWatcher struct + Level string + func (LogWatcher) Name() string + func (LogWatcher) Register(foundation.Application) error + type MailWatcher struct + func (MailWatcher) Name() string + func (MailWatcher) Register(foundation.Application) error + type MemoryStorage struct + Limit int + func NewMemoryStorage(limit int) *MemoryStorage + func (m *MemoryStorage) Clear(context.Context) error + func (m *MemoryStorage) Counts(context.Context) (map[EntryType]int64, error) + func (m *MemoryStorage) Find(_ context.Context, id string) (*Entry, error) + func (m *MemoryStorage) Get(_ context.Context, q Query) ([]*Entry, error) + func (m *MemoryStorage) Monitor(_ context.Context, tags []string) error + func (m *MemoryStorage) MonitoredTags(context.Context) ([]string, error) + func (m *MemoryStorage) Occurrences(_ context.Context, familyHash string) (int64, error) + func (m *MemoryStorage) Prune(_ context.Context, before time.Time) (int64, error) + func (m *MemoryStorage) Store(_ context.Context, entries []*Entry) error + func (m *MemoryStorage) Unmonitor(_ context.Context, tags []string) error + type Middleware struct + func NewMiddleware(r *Recorder) *Middleware + func (m *Middleware) Handle(ctx http.Context) + func (m *Middleware) Signature() string + type Migration struct + func (Migration) Connection() string + func (Migration) Down() error + func (Migration) Signature() string + func (Migration) Up() error + type ModelWatcher struct + func (ModelWatcher) Name() string + func (ModelWatcher) Register(foundation.Application) error + type PruneCommand struct + func (c *PruneCommand) Description() string + func (c *PruneCommand) Extend() command.Extend + func (c *PruneCommand) Handle(ctx console.Context) error + func (c *PruneCommand) Signature() string + type Query struct + BatchID string + Before int64 + FamilyHash string + IndexOnly bool + Limit int + Tag string + Type EntryType + type QueryWatcher struct + Connections []string + SlowMs int + func (QueryWatcher) Name() string + func (QueryWatcher) Register(foundation.Application) error + type Recorder struct + func Instance() *Recorder + func NewRecorder(cfg *Config, storage Storage) *Recorder + func (r *Recorder) Close() + func (r *Recorder) Config() *Config + func (r *Recorder) Dropped() int64 + func (r *Recorder) Flush(timeout time.Duration) + func (r *Recorder) JoinOrStartBatch() (*Batch, func()) + func (r *Recorder) Record(ctx context.Context, e *Entry) + func (r *Recorder) RecordException(ctx context.Context, err any, extra map[string]any) + func (r *Recorder) Recording() bool + func (r *Recorder) SetRecording(on bool) + func (r *Recorder) StartBatch() (*Batch, func()) + func (r *Recorder) Storage() Storage + func (r *Recorder) Suppress() func() + type RedisWatcher struct + func (RedisWatcher) Name() string + func (RedisWatcher) Register(foundation.Application) error + type RequestWatcher struct + IgnoreStatusCodes []int + SizeLimit int + func (RequestWatcher) Name() string + func (RequestWatcher) Register(foundation.Application) error + type ScheduleWatcher struct + func (ScheduleWatcher) Name() string + func (ScheduleWatcher) Register(foundation.Application) error + type ServiceProvider struct + func (r *ServiceProvider) Boot(a foundation.Application) + func (r *ServiceProvider) Register(a foundation.Application) + func (r *ServiceProvider) Relationship() binding.Relationship + type Storage interface + Clear func(ctx context.Context) error + Counts func(ctx context.Context) (map[EntryType]int64, error) + Find func(ctx context.Context, uuid string) (*Entry, error) + Get func(ctx context.Context, q Query) ([]*Entry, error) + Monitor func(ctx context.Context, tags []string) error + MonitoredTags func(ctx context.Context) ([]string, error) + Occurrences func(ctx context.Context, familyHash string) (int64, error) + Prune func(ctx context.Context, before time.Time) (int64, error) + Store func(ctx context.Context, entries []*Entry) error + Unmonitor func(ctx context.Context, tags []string) error + type User struct + Attributes map[string]any + Email string + ID any + Name string + func CurrentUser(ctx http.Context) *User + func (u *User) Field(name string) (string, bool) + type Watcher interface + Name func() string + Register func(app foundation.Application) error + func DefaultWatchers() []Watcher + type WatcherInfo struct + Columns []Column + Group string + Hint string + Title string