Documentation
¶
Overview ¶
Package entity implements the SQLite entity link store for Cortex.
Index ¶
- type Store
- func (s *Store) DeleteByObservation(ctx context.Context, obsID int64) error
- func (s *Store) FindByEntity(ctx context.Context, entityType, entityValue string) ([]*domain.EntityLink, error)
- func (s *Store) GetByObservation(ctx context.Context, obsID int64) ([]*domain.EntityLink, error)
- func (s *Store) SaveLinks(ctx context.Context, links []*domain.EntityLink) 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 the SQLite entity link store.
func (*Store) DeleteByObservation ¶
DeleteByObservation removes all entity links for an observation.
func (*Store) FindByEntity ¶
func (s *Store) FindByEntity(ctx context.Context, entityType, entityValue string) ([]*domain.EntityLink, error)
FindByEntity retrieves entity links matching a type and value.
func (*Store) GetByObservation ¶
GetByObservation retrieves all entity links for an observation.
Click to show internal directories.
Click to hide internal directories.