Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginLogDir ¶
func RunPlugin ¶
func RunPlugin(handler PluginHandler)
Types ¶
type MenuOption ¶
type MenuOption struct {
Label string `json:"label"`
Command string `json:"command"`
Parameters []ParameterInfo `json:"parameters,omitempty"`
SubMenu []MenuOption `json:"sub_menu,omitempty"`
}
type ParameterInfo ¶
type PluginHandler ¶
type PluginHandler interface {
GetPluginInfo(*pb.PluginInfoRequest) (*pb.PluginInfo, error)
ExecuteCommand(*pb.CommandRequest) (*pb.CommandResponse, error)
GetMenu(*pb.MenuRequest) (*pb.MenuResponse, error)
}
Click to show internal directories.
Click to hide internal directories.