sdk

package
v0.0.0-...-566fc8f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type        string      `json:"type"`
	Name        string      `json:"name"`
	QueryResult QueryResult `json:"queryResult"`
}

type ContextMenuItem

type ContextMenuItem struct {
	Type    string            `json:"type,omitempty"`
	Label   string            `json:"label"`
	Enabled bool              `json:"enabled"`
	Icon    string            `json:"icon,omitempty"`
	SubMenu []ContextMenuItem `json:"submenu,omitempty"`
}

type Metadata

type Metadata struct {
	Name        string `json:"name"`
	ID          string `json:"id"`
	Description string `json:"description"`
	Author      string `json:"author"`
	Version     string `json:"version"`
	Type        string `json:"type"`
	Main        string `json:"main"`
	Icon        string `json:"_icon"`
	// where to store your app's data and settings
	AppData string `json:"_appdata"`
}

type Program

type Program struct {
	Path  string `json:"path"`
	Icon  string `json:"icon"`
	Usage int    `json:"usage"`
}

type QueryResult

type QueryResult struct {
	Program
	Title    string `json:"title"`
	Subtitle string `json:"subtitle"`
	Query    string `json:"query"`
	// ID of plugin returning this query results
	ID          string            `json:"id"`
	Score       int               `json:"score"`
	LowName     string            `json:"-"`
	ContextMenu []ContextMenuItem `json:"contextmenu"`
	// extra data for plugins
	Data interface{} `json:"data"`
}

type Request

type Request struct {
	Method string          `json:"method"`
	Params json.RawMessage `json:"params"`
}

type Response

type Response struct {
	Method string      `json:"method"`
	Params interface{} `json:"params"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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