Documentation
¶
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 is an in-memory implementation of errs.ErrorStore using a circular buffer for events and a map for groups.
func NewStore ¶
NewStore creates a new in-memory error store. eventCap controls the maximum number of error events kept (circular buffer).
func (*Store) GetGroup ¶
func (s *Store) GetGroup(id string) (*errs.ErrorGroup, error)
GetGroup returns a single error group by fingerprint ID.
func (*Store) IngestError ¶
func (s *Store) IngestError(event errs.ErrorEvent) error
IngestError adds an error event and creates/updates the corresponding group.
Click to show internal directories.
Click to hide internal directories.