Documentation
¶
Index ¶
Constants ¶
View Source
const RawPluginBaseURL = "https://raw.githubusercontent.com/floatpane/matcha/master/plugins/"
View Source
const RegistryURL = "https://raw.githubusercontent.com/floatpane/matcha/master/plugins/registry.json"
Variables ¶
This section is empty.
Functions ¶
func FetchPlugin ¶
func FetchPlugin(entry PluginEntry) ([]byte, error)
FetchPlugin downloads a plugin file. If the entry has a URL, it downloads from there; otherwise it falls back to the default repo location.
Types ¶
type PluginEntry ¶
type PluginEntry struct {
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
File string `json:"file"`
URL string `json:"url,omitempty"`
}
PluginEntry represents a single plugin in the registry.
func FetchRegistry ¶
func FetchRegistry() ([]PluginEntry, error)
FetchRegistry fetches the plugin registry from GitHub.
Click to show internal directories.
Click to hide internal directories.