Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
// SetMsgSendFunc is called by controller when new connection established, handler
// should use the latest message send func for SendMsg function call
SetMsgSendFunc(sendMsg MsgSendFunc)
// SendMsg send out of band message to the extension hub
SendMsg(msg *arhatgopb.Msg) error
// HandleCmd process one command per function call, payload is non stream data
HandleCmd(
ctx context.Context,
id, seq uint64,
kind arhatgopb.CmdType,
payload []byte,
) (arhatgopb.MsgType, interface{}, error)
}
Handler for controller
type MsgSendFunc ¶ added in v0.4.0
type ResizeHandleFunc ¶ added in v0.4.0
type ResizeHandleFunc func(cols, rows uint32)
Click to show internal directories.
Click to hide internal directories.