sources

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Magnet

func Magnet(url string) string

Magnet returns a magnet link for a given url.

Types

type Item

type Item struct {
	Title    string
	Subtitle string
	Link     string
	IconPath string
}

Item represents an Alfred script filter item.

type Leet

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

func (Leet) Items

func (lt Leet) Items(q *query.Query) []*Item

Items returns a slice of scriptfilter.Items for a given query, optional category tag, and optional sort flag.

type Source

type Source interface {
	Items(q *query.Query) []*Item
}

func All

func All() []Source

All returns a slice of all concrete types implementing the source interface.

Jump to

Keyboard shortcuts

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