irc

package
v0.0.0-...-967dab9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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
)

Jump to

Keyboard shortcuts

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