README
¶
Browsers Service
Browser service provides read/write API for browser object.
To enable include browsers config part and add browsers
to APIModules:
{
"BrowsersConfig": {
"Enabled": true,
},
APIModules: "browsers"
}
API
Enabling service will expose three additional methods:
browsers_addBrowser
Stores browser in the database. All fields are specified below:
{
"browser-id": "1",
"name": "first",
"timestamp": 10,
"dapp?": true,
"history-index": 1,
"history": [
"one",
"two"
]
}
browsers_getBrowsers
Reads all browsers, returns in the format specified above. List is sorted by timestamp.
browsers_deleteBrowser
Delete browser from database. Accepts browser id
.
Documentation
¶
Index ¶
- type API
- func (api *API) DeleteBookmark(ctx context.Context, url string) error
- func (api *API) GetBookmarks(ctx context.Context) ([]*Bookmark, error)
- func (api *API) RemoveBookmark(ctx context.Context, url string) error
- func (api *API) StoreBookmark(ctx context.Context, bookmark Bookmark) (Bookmark, error)
- func (api *API) UpdateBookmark(ctx context.Context, originalURL string, bookmark Bookmark) error
- type Bookmark
- type BookmarksType
- type Browser
- type Database
- func (db Database) Close() error
- func (db *Database) DeleteBookmark(url string) error
- func (db *Database) GetBookmarks() ([]*Bookmark, error)
- func (db *Database) RemoveBookmark(url string) error
- func (db *Database) StoreBookmark(bookmark Bookmark) (Bookmark, error)
- func (db *Database) StoreBookmarkWithoutFetchIcon(bookmark *Bookmark, tx *sql.Tx) (err error)
- func (db *Database) StoreSyncBookmarks(bookmarks []*Bookmark) ([]*Bookmark, error)
- func (db *Database) UpdateBookmark(originalURL string, bookmark Bookmark) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is class with methods available over RPC.
func (*API) DeleteBookmark ¶ added in v0.63.10
func (*API) GetBookmarks ¶ added in v0.63.10
func (*API) RemoveBookmark ¶ added in v0.94.4
func (*API) StoreBookmark ¶ added in v0.63.10
type BookmarksType ¶ added in v0.63.10
type BookmarksType string
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database sql wrapper for operations with browser objects.
func (*Database) DeleteBookmark ¶ added in v0.63.10
func (*Database) GetBookmarks ¶ added in v0.63.10
func (*Database) RemoveBookmark ¶ added in v0.94.4
func (*Database) StoreBookmark ¶ added in v0.63.10
func (*Database) StoreBookmarkWithoutFetchIcon ¶ added in v0.94.4
func (*Database) StoreSyncBookmarks ¶ added in v0.94.4
Click to show internal directories.
Click to hide internal directories.