filestore

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package filestore implements errors.ErrorStore backed by JSON files on disk. Groups are stored as individual files, events as a capped JSON array.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store implements errs.ErrorStore using file persistence.

func New

func New(dir string, eventCap int) (*Store, error)

New creates a file-backed error store.

func (*Store) GetEvents

func (s *Store) GetEvents(groupID string, limit int) ([]errs.ErrorEvent, error)

func (*Store) GetGroup

func (s *Store) GetGroup(id string) (*errs.ErrorGroup, error)

func (*Store) GetGroups

func (s *Store) GetGroups(status string, limit int) ([]errs.ErrorGroup, error)

func (*Store) IngestError

func (s *Store) IngestError(event errs.ErrorEvent) error

func (*Store) UpdateGroupStatus

func (s *Store) UpdateGroupStatus(id string, status string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL