Documentation ¶
Overview ¶
Package connection creates the interface for all services that require a connection to the chatbot. Each connection must have a Start method that creates and returns a transmit and receive channel, which are used to communicate with the plugins.
Messages sent to the chatbot via the connection interface will be routed through the rx channel. The chatbot will distribute messages on this channel to all plugins. The plugins then have the opportunity to respond through the tx channel.
Messages sent from the chatbot from the plugins are sent into the tx channel. The chatbot takes messages from the tx channel and returns it to the connection interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
Start(chan error) (rx, tx message.BasicChannel)
}
Connection interface has a Start method for creating the connection two basic channels for transmitting and receiving messages
Directories ¶
Path | Synopsis |
---|---|
Package slack is a Connection to the Slack Real Time Messaging API (https://api.slack.com/rtm).
|
Package slack is a Connection to the Slack Real Time Messaging API (https://api.slack.com/rtm). |
Package stdio is a Connection to a stdin/stdout Terminal session
|
Package stdio is a Connection to a stdin/stdout Terminal session |