Documentation ¶
Overview ¶
Package input is an interface for bot inputs
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Inputs keyed by name // Example slack or hipchat Inputs = map[string]Input{} )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn interface provides a way to send and receive events. Send and Recv both block until succeeding or failing.
type Input ¶
type Input interface { // Provide cli flags Flags() []cli.Flag // Initialise input using cli context Init(*cli.Context) error // Stream events from the input Stream() (Conn, error) // Start the input Start() error // Stop the input Stop() error // name of the input String() string }
Input is an interface for sources which provide a way to communicate with the bot. Slack, HipChat, XMPP, etc.
Click to show internal directories.
Click to hide internal directories.