Documentation
¶
Overview ¶
Package bookmarks stores named pointers into Codog workspaces and sessions.
Package bookmarks stores and resolves named workspace and session references.
Index ¶
- type Bookmark
- type ListOptions
- type Store
- func (s Store) Add(bookmark Bookmark) (Bookmark, error)
- func (s Store) Clear(options ListOptions) (int, error)
- func (s Store) Delete(ref string) (Bookmark, error)
- func (s Store) Get(ref string) (Bookmark, error)
- func (s Store) List(options ListOptions) ([]Bookmark, error)
- func (s Store) Path() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bookmark ¶
type Bookmark struct {
ID string `json:"id"`
Name string `json:"name"`
Workspace string `json:"workspace,omitempty"`
SessionID string `json:"session_id,omitempty"`
MessageIndex *int `json:"message_index,omitempty"`
PRRepo string `json:"pr_repo,omitempty"`
PRNumber int `json:"pr_number,omitempty"`
PRURL string `json:"pr_url,omitempty"`
Note string `json:"note,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Bookmark is a named pointer to a workspace, session, and optional message.
type ListOptions ¶
ListOptions controls workspace filtering for list and clear operations.
type Store ¶
Store persists bookmarks under the Codog config home.
func (Store) Clear ¶
func (s Store) Clear(options ListOptions) (int, error)
Clear removes matching bookmarks and returns the number removed.
Click to show internal directories.
Click to hide internal directories.