Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Handlers map[string]func([]byte)
Wg *sync.WaitGroup
// contains filtered or unexported fields
}
Client is a standard plug host. It supports basic operations.
func (*Client) HandleMessageType ¶
HandleMessageType adds handler for incoming messages from the plug to the host.
func (*Client) RunCommand ¶
RunCommand sends arbitrary message to a plug. Plug must understand the message.
Click to show internal directories.
Click to hide internal directories.