Documentation
¶
Index ¶
- Constants
- type KBStorage
- func (s *KBStorage) Add(entry *models.KBEntry) error
- func (s *KBStorage) Get(id string) (*models.KBEntry, error)
- func (s *KBStorage) GetByCategory(category string) ([]*models.KBEntry, error)
- func (s *KBStorage) GetByType(entryType models.KBEntryType) ([]*models.KBEntry, error)
- func (s *KBStorage) GetContact() (*models.KBEntry, error)
- func (s *KBStorage) GetContext() ([]*models.KBEntry, error)
- func (s *KBStorage) GetEducation() ([]*models.KBEntry, error)
- func (s *KBStorage) GetExperience() ([]*models.KBEntry, error)
- func (s *KBStorage) GetProfile() ([]*models.KBEntry, error)
- func (s *KBStorage) GetSkills() (*models.KBEntry, error)
- func (s *KBStorage) Load() ([]*models.KBEntry, error)
- func (s *KBStorage) Remove(id string) error
- func (s *KBStorage) Save(entries []*models.KBEntry) error
- func (s *KBStorage) Update(id string, updateFn func(*models.KBEntry)) error
- type Storage
- func (s *Storage) Add(app *models.Application) error
- func (s *Storage) Get(id string) (*models.Application, error)
- func (s *Storage) Load() ([]*models.Application, error)
- func (s *Storage) Remove(id string) error
- func (s *Storage) Save(apps []*models.Application) error
- func (s *Storage) Update(id string, updateFn func(*models.Application)) error
Constants ¶
View Source
const DefaultFilePath = "applications.jsonl"
View Source
const DefaultKBFilePath = "candidate-kb.jsonl"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KBStorage ¶
type KBStorage struct {
// contains filtered or unexported fields
}
func NewKBStorage ¶
func (*KBStorage) GetByCategory ¶
GetByCategory returns all entries of a specific category
func (*KBStorage) GetContact ¶
GetContact returns the contact profile entry (there should be at most one)
func (*KBStorage) GetContext ¶
GetContext returns all contextual entries
func (*KBStorage) GetEducation ¶
GetEducation returns all education entries
func (*KBStorage) GetExperience ¶
GetExperience returns all experience entries
func (*KBStorage) GetProfile ¶
GetProfile returns all profile entries
Click to show internal directories.
Click to hide internal directories.