Documentation
¶
Index ¶
- Variables
- type Entry
- type Preference
- type Profile
- type SourceKind
- type Store
- func (s *Store) Bookmarks(ctx context.Context, owner, profileID string) ([]Entry, error)
- func (s *Store) ClearHistory(ctx context.Context, owner, profileID string) error
- func (s *Store) Close() error
- func (s *Store) DeleteBookmark(ctx context.Context, owner, profileID, rawURL string) error
- func (s *Store) History(ctx context.Context, owner, profileID, query string, limit int) ([]Entry, error)
- func (s *Store) Preference(ctx context.Context, owner string) (*Preference, error)
- func (s *Store) Profiles(ctx context.Context, owner string) ([]Profile, error)
- func (s *Store) PutBookmark(ctx context.Context, owner, profileID string, entry Entry) error
- func (s *Store) PutProfile(ctx context.Context, owner string, profile Profile) error
- func (s *Store) SaveTabs(ctx context.Context, owner, profileID string, tabs []Tab) error
- func (s *Store) SetPreference(ctx context.Context, owner string, value Preference) error
- func (s *Store) SetZoom(ctx context.Context, owner, profileID, rawOrigin string, zoom float64) error
- func (s *Store) Tabs(ctx context.Context, owner, profileID string) ([]Tab, error)
- func (s *Store) UpdateVisitTitle(ctx context.Context, owner, profileID string, entry Entry) error
- func (s *Store) Visit(ctx context.Context, owner, profileID string, entry Entry) error
- func (s *Store) Zoom(ctx context.Context, owner, profileID, rawOrigin string) (float64, error)
- type Tab
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Preference ¶
type Preference struct {
ProfileID string `json:"profile_id"`
InstallationID string `json:"installation_id,omitempty"`
}
Preference references library identity only. It carries no target, endpoint, command, credential or authority that could be replayed after a restart.
type Profile ¶
type Profile struct {
ID string `json:"id"`
Name string `json:"name"`
Kind SourceKind `json:"kind"`
}
type SourceKind ¶
type SourceKind string
const ( Managed SourceKind = "managed" CDP SourceKind = "cdp" Extension SourceKind = "extension" )
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClearHistory ¶
func (*Store) DeleteBookmark ¶
func (*Store) Preference ¶
func (*Store) PutBookmark ¶
func (*Store) PutProfile ¶
func (*Store) SetPreference ¶
func (*Store) UpdateVisitTitle ¶
A later source title update is metadata, not another navigation or visit.
Click to show internal directories.
Click to hide internal directories.