Documentation ¶
Index ¶
- type SearchStrategy
- type Stat
- type Stats
- type Store
- func (s *Store) Close() error
- func (s *Store) Get(id string) (*model.Record, error)
- func (s *Store) Has(id string) (bool, error)
- func (s *Store) Put(rec *model.Record) error
- func (s *Store) ResetStates() error
- func (s *Store) Search(minFaces int, strategy SearchStrategy) (*model.Record, error)
- func (s *Store) SearchRandom(minFaces int) (*model.Record, error)
- func (s *Store) SetState(id string, state model.MediaState) error
- func (s *Store) Stats(state model.MediaState) (Stats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchStrategy ¶
type SearchStrategy int
const ( TopFacesStrategy SearchStrategy = iota TopLikesStrategy FacesUserStrategy LikesUserStrategy )
func ChooseStrategy ¶
func ChooseStrategy() SearchStrategy
func (SearchStrategy) String ¶
func (s SearchStrategy) String() string
Click to show internal directories.
Click to hide internal directories.