api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(p Provider, mux *http.ServeMux)

Bind attaches the API routes to the default HTTP server.

Types

type Provider

type Provider interface {
	List() ([]*goggles.Package, error)
	Details(string) (*goggles.Package, error)

	OpenFileExplorer(string)
	OpenTerminal(string)
	OpenBrowser(string)

	Preferences() *conf.Config
	UpdatePreferences(*conf.Config)
}

Provider is a type that provides access to package data, the host operating system, and anything else the API requires to function.

Jump to

Keyboard shortcuts

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