Documentation
¶
Overview ¶
Package recents provides a store for tracking recently used items.
Index ¶
Constants ¶
View Source
const ( TypeProject = "project" TypeTodolist = "todolist" TypeRecording = "recording" TypePerson = "person" )
ItemTypes for common entities.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
Type string `json:"type"`
AccountID string `json:"account_id,omitempty"`
ProjectID string `json:"project_id,omitempty"`
UsedAt time.Time `json:"used_at"`
}
Item represents a recently used item.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages recently used items.
func NewStore ¶
NewStore creates a new recent items store. The store file is located at <cacheDir>/recents.json.
Click to show internal directories.
Click to hide internal directories.