Documentation
¶
Index ¶
- Constants
- type ConnectionManager
- func (mgr *ConnectionManager) AutoConnect()
- func (mgr *ConnectionManager) Connect()
- func (mgr *ConnectionManager) Connection() *ircevent.Connection
- func (mgr *ConnectionManager) Debug() bool
- func (mgr *ConnectionManager) Quit()
- func (mgr *ConnectionManager) Reconnect()
- func (mgr *ConnectionManager) SetDebug(debug bool)
- func (mgr *ConnectionManager) Status() ConnectionStatus
- type ConnectionStatus
Constants ¶
View Source
const ( PrivmsgEvent event.EventType = "irc.PRIVMSG" NoticeEvent = "irc.NOTICE" ConnectEvent = "irc.CONNECT" ConnectingEvent = "irc.CONNECTING" DisconnectEvent = "irc.DISCONNECT" IrcEvent = "irc.WILDCARD" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionManager ¶
type ConnectionManager struct {
// contains filtered or unexported fields
}
func NewConnectionManager ¶
func NewConnectionManager(logger *log.Logger, events event.EventManager, conf *config.Configuration) *ConnectionManager
func (*ConnectionManager) AutoConnect ¶
func (mgr *ConnectionManager) AutoConnect()
func (*ConnectionManager) Connect ¶
func (mgr *ConnectionManager) Connect()
func (*ConnectionManager) Connection ¶
func (mgr *ConnectionManager) Connection() *ircevent.Connection
func (*ConnectionManager) Debug ¶
func (mgr *ConnectionManager) Debug() bool
func (*ConnectionManager) Quit ¶
func (mgr *ConnectionManager) Quit()
func (*ConnectionManager) Reconnect ¶
func (mgr *ConnectionManager) Reconnect()
func (*ConnectionManager) SetDebug ¶
func (mgr *ConnectionManager) SetDebug(debug bool)
func (*ConnectionManager) Status ¶
func (mgr *ConnectionManager) Status() ConnectionStatus
type ConnectionStatus ¶
type ConnectionStatus int
const ( Disconnected ConnectionStatus = iota Connecting Connected )
Click to show internal directories.
Click to hide internal directories.