cloud

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package cloud provides access to Safari's iCloud Tabs.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultTabsPath is the path to the default CloudTabs database.
	DefaultTabsPath = filepath.Join(os.Getenv("HOME"), "Library/Safari/CloudTabs.db")
)

Functions

This section is empty.

Types

type CloudTabs

type CloudTabs struct {
	DB *sql.DB
}

CloudTabs is a collection of Tabs.

func New

func New(filename string) (*CloudTabs, error)

New creates a new Tabs from a Safari CloudTabs.db database.

func (*CloudTabs) Tabs

func (c *CloudTabs) Tabs() ([]*Tab, error)

Tabs returns all Cloud Tabs. Tabs for the current device are ignored.

type Tab

type Tab struct {
	Title  string // Tab title
	URL    string // URL
	Device string // Computer/phone/tablet name
}

Tab is a cloud tab.

func Tabs

func Tabs() ([]*Tab, error)

Tabs returns all Cloud Tabs. Tabs for the current device are ignored.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL