gateway

package
v0.0.0-...-9989f86 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2016 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GATEWAY_IRC = "irc"
)
View Source
const (
	SlackEventTypeMessage = "message"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway interface {
	ID() string
	Name() string
	Open(chan *message.Message) error
	SendMessage(*message.Message) error
}

type IRCGateway

type IRCGateway struct {
	// contains filtered or unexported fields
}

func NewIRCGateway

func NewIRCGateway(cfg config.IRCGateway, botname string) *IRCGateway

func (*IRCGateway) ID

func (gw *IRCGateway) ID() string

func (*IRCGateway) Name

func (gw *IRCGateway) Name() string

func (*IRCGateway) Open

func (gw *IRCGateway) Open(c chan *message.Message) error

func (*IRCGateway) SendMessage

func (gw *IRCGateway) SendMessage(m *message.Message) error

type SlackGateway

type SlackGateway struct {
	// contains filtered or unexported fields
}

func NewSlackGateway

func NewSlackGateway(cfg config.SlackGateway) *SlackGateway

func (*SlackGateway) ID

func (gw *SlackGateway) ID() string

func (*SlackGateway) Name

func (gw *SlackGateway) Name() string

func (*SlackGateway) Open

func (gw *SlackGateway) Open(c chan *message.Message) error

func (*SlackGateway) SendMessage

func (gw *SlackGateway) SendMessage(m *message.Message) error

Jump to

Keyboard shortcuts

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