plugins

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInstall

func HandleInstall(conn net.Conn, req models.Request)

func HandleList

func HandleList(conn net.Conn, req models.Request)

func HandleListInstalled

func HandleListInstalled(conn net.Conn, req models.Request)

func HandleRequest

func HandleRequest(conn net.Conn, req models.Request)

func HandleSearch

func HandleSearch(conn net.Conn, req models.Request)

func HandleUninstall

func HandleUninstall(conn net.Conn, req models.Request)

func HandleUpdate

func HandleUpdate(conn net.Conn, req models.Request)

func SortPluginInfoByFirstParty

func SortPluginInfoByFirstParty(pluginInfos []PluginInfo)

Types

type PluginInfo

type PluginInfo struct {
	ID           string   `json:"id"`
	Name         string   `json:"name"`
	Category     string   `json:"category,omitempty"`
	Author       string   `json:"author,omitempty"`
	Description  string   `json:"description,omitempty"`
	Repo         string   `json:"repo,omitempty"`
	Path         string   `json:"path,omitempty"`
	Capabilities []string `json:"capabilities,omitempty"`
	Compositors  []string `json:"compositors,omitempty"`
	Dependencies []string `json:"dependencies,omitempty"`
	Installed    bool     `json:"installed,omitempty"`
	FirstParty   bool     `json:"firstParty,omitempty"`
	Note         string   `json:"note,omitempty"`
	HasUpdate    bool     `json:"hasUpdate,omitempty"`
}

type SuccessResult

type SuccessResult struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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