Documentation ¶
Index ¶
- Constants
- func GetPassword() (key [32]byte)
- type Entries
- func (es Entries) DeleteByName(name string) (cleaned Entries)
- func (es Entries) FindByName(name string) *Entry
- func (es Entries) FuzzyMatch(search string) (ret Entries)
- func (es Entries) SortByBestMatch(search string) Entries
- func (es Entries) SortByHits() Entries
- func (es Entries) SortByName() Entries
- type Entry
- type FastPass
- type Stats
Constants ¶
View Source
const (
NextHalfInc = time.Hour * 24 * 7
)
halving parameters
Variables ¶
This section is empty.
Functions ¶
func GetPassword ¶
func GetPassword() (key [32]byte)
GetPassword retrieves a password from the command line. It returns the the stretched representation of the password using pbkdf2.
Types ¶
type Entries ¶
type Entries []*Entry
Entries is a set of entries
func (Entries) DeleteByName ¶
DeleteByName deletes an entry from es and returns the new slice
func (Entries) FindByName ¶
FindByName finds an entry by it's name. It returns nil if no entry was found.
func (Entries) FuzzyMatch ¶
FuzzyMatch returns all entries with names fuzzy matching search
func (Entries) SortByBestMatch ¶
SortByBestMatch tries to sort entries by best match
type FastPass ¶
FastPass is a fastpass service
type Stats ¶
type Stats struct { //Activity should not be incremented directly Activity int //NextHalfInc is added to NextHalf every hit, up to maxNextHalf //It's goal is to prevent entries that are no longer frequently accessed from //being actively selected NextHalf time.Time }
Stats contains stats about an entry's access.
Click to show internal directories.
Click to hide internal directories.