Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
func Main(h *BasicHandler)
Types ¶
type BasicHandler ¶
type BasicHandler struct {
Handlers map[string]func([]byte)
// contains filtered or unexported fields
}
func New ¶
func New() *BasicHandler
func (*BasicHandler) Finish ¶
func (h *BasicHandler) Finish(message string, code codes.PluginExitReason)
func (*BasicHandler) HandleMessageType ¶
func (h *BasicHandler) HandleMessageType(name string, handler func([]byte))
func (*BasicHandler) Respond ¶
func (h *BasicHandler) Respond(t string, v any)
Click to show internal directories.
Click to hide internal directories.