connection

package
v0.0.0-...-821ef61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 1 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL