Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicHandler ¶
type BasicHandler struct {
Handlers map[string]func([]byte)
// contains filtered or unexported fields
}
func (*BasicHandler) Finish ¶
func (h *BasicHandler) Finish(message string, code codes.PluginExitReason)
func (*BasicHandler) HandleMessageType ¶
func (h *BasicHandler) HandleMessageType(name string, handler func([]byte))
HandleMessageType registers a function that decodes a message of particular type to process it
func (*BasicHandler) Respond ¶
func (h *BasicHandler) Respond(t string, v any)
Respond sends raw response to the plugin host. It encapsulates the information in an envelope
Click to show internal directories.
Click to hide internal directories.