Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type HTTPAdapter ¶
type HTTPAdapter struct {
// contains filtered or unexported fields
}
func NewHTTP ¶
func NewHTTP(port int) (*HTTPAdapter, error)
func (HTTPAdapter) RunAndAttach ¶
func (ha HTTPAdapter) RunAndAttach() (chan Message, chan Message, chan error)
type Message ¶
type Message struct { // Emitter is the emitter of the message, in the case of Slack is clear, in // some other cases as for example the http adapter, it doesn't need to be set Emitter string // Receiver is the receiver of the message, for example: a channel ID Receiver string Body string IsChannel bool IsDirectMessage bool }
type SlackAdapter ¶
type SlackAdapter struct {
// contains filtered or unexported fields
}
func NewSlack ¶
func NewSlack(key string) (*SlackAdapter, error)
TODO: this requires refactoring, it's tooooo long
func (*SlackAdapter) RunAndAttach ¶
func (sa *SlackAdapter) RunAndAttach() (chan Message, chan Message, chan error)
Click to show internal directories.
Click to hide internal directories.