index

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Repo repo.Repo
}

func New

func New(r repo.Repo) Store

func (Store) AddNote

func (s Store) AddNote(personQuery string, note model.Note) (model.Note, error)

func (Store) AddPerson

func (s Store) AddPerson(name string, emails, phones, tags []string, now time.Time) (model.Person, error)

func (Store) ClearAvatar

func (s Store) ClearAvatar(personQuery string, now time.Time) (model.Person, error)

func (Store) FindPerson

func (s Store) FindPerson(query string) (model.Person, error)

func (Store) ImportContacts

func (s Store) ImportContacts(source string, contacts []model.SourceContact, dryRun bool, now time.Time) ([]model.ImportChange, error)

func (Store) Notes

func (s Store) Notes(personQuery string) ([]model.Note, error)

func (Store) People

func (s Store) People() ([]model.Person, error)

func (Store) Rebuild

func (s Store) Rebuild() error

func (Store) RepairAvatarMetadata

func (s Store) RepairAvatarMetadata(person model.Person, now time.Time) (model.Person, bool, error)

func (Store) Search

func (s Store) Search(query string) ([]model.SearchHit, error)

func (Store) SetAvatar

func (s Store) SetAvatar(personQuery, imagePath string, now time.Time) (model.Person, error)

Jump to

Keyboard shortcuts

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