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 ¶
- type Store
- func (s *Store) GetEvents(groupID string, limit int) ([]errs.ErrorEvent, error)
- func (s *Store) GetGroup(id string) (*errs.ErrorGroup, error)
- func (s *Store) GetGroups(status string, limit int) ([]errs.ErrorGroup, error)
- func (s *Store) IngestError(event errs.ErrorEvent) error
- func (s *Store) UpdateGroupStatus(id string, status string) error
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 (*Store) IngestError ¶
func (s *Store) IngestError(event errs.ErrorEvent) error
Click to show internal directories.
Click to hide internal directories.