Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunPlugin ¶
func RunPlugin(payload RunPluginPayload)
Types ¶
type GenericResponse ¶
type GenericResponse struct {
InvokeID string `json:"invoke_id"`
Type GenericResponseType `json:"type"`
Response map[string]any `json:"response"`
}
type GenericResponseType ¶
type GenericResponseType = string
const ( GENERIC_RESPONSE_TYPE_INFO GenericResponseType = "info" GENERIC_RESPONSE_TYPE_PLUGIN_READY GenericResponseType = "plugin_ready" GENERIC_RESPONSE_TYPE_ERROR GenericResponseType = "error" GENERIC_RESPONSE_TYPE_PLUGIN_RESPONSE GenericResponseType = "plugin_response" GENERIC_RESPONSE_TYPE_PLUGIN_INVOKE_END GenericResponseType = "plugin_invoke_end" )
type InvokePluginPayload ¶
type InvokePluginPayload struct {
InvokeID string `json:"invoke_id"`
Type access_types.PluginAccessType `json:"type"`
Action access_types.PluginAccessAction `json:"action"`
Request map[string]any `json:"request"`
}
Click to show internal directories.
Click to hide internal directories.