firefox

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	URL    *string `json:"url" yaml:"url"`
	Title  string  `json:"title" yaml:"title"`
	Folder string  `json:"folder" yaml:"folder"`
	ID     int     `json:"id" yaml:"id"`
	Parent *int    `json:"parent" yaml:"parent"`
}

type BookmarkOperator

type BookmarkOperator interface {
	GetBookmarks(context.Context) ([]Bookmark, error)
}

func NewDatabaseOperator

func NewDatabaseOperator(conn sqlite.DBConnection) BookmarkOperator

type DatabaseOperator

type DatabaseOperator struct {
	// contains filtered or unexported fields
}

func (*DatabaseOperator) GetBookmarks

func (d *DatabaseOperator) GetBookmarks(ctx context.Context) ([]Bookmark, error)

type Module

type Module struct {
	Config ModuleConfig
}

func NewModule

func NewModule(config ModuleConfig) Module

func (Module) Columns

func (p Module) Columns() []recon.Column

func (Module) Name

func (p Module) Name() string

func (Module) Options

func (p Module) Options() ([]recon.Option, error)

func (Module) OptionsOrCache

func (p Module) OptionsOrCache(maxAge float64) ([]recon.Option, error)

func (Module) SelectOption

func (p Module) SelectOption(option *recon.Option) error

func (Module) Type

func (p Module) Type() string

type ModuleConfig

type ModuleConfig struct {
	// Name is used to override the default module name
	Name string `yaml:"name,omitempty"`

	// DisplayName is a template string to render a custom display name
	DisplayName string `yaml:"display-name"`

	// StartDirectory is a template string that defines the start directory
	StartDirectory string `yaml:"start-directory"`

	// DbFile points to the local Firefox SQLite database
	DbFile string `yaml:"db-file"`
}

Jump to

Keyboard shortcuts

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