Documentation ¶
Overview ¶
Package irc is used to manage a client IRC connection as a squircy3 plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { Nick string `toml:"nick"` Username string `toml:"user"` Network string `toml:"network"` TLS bool `toml:"tls"` AutoConnect bool `toml:"auto"` SASL bool `toml:"sasl"` SASLUsername string `toml:"sasl_username"` SASLPassword string `toml:"sasl_password"` ServerPassword string `toml:"server_password"` Version string }
type Connection ¶
type Connection struct { *irc.Connection // contains filtered or unexported fields }
func (*Connection) Connect ¶
func (conn *Connection) Connect() error
func (*Connection) Quit ¶
func (conn *Connection) Quit() (err error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func FromPlugins ¶
FromPlugins returns the irc plugin's Manager or an error if it fails.
func NewManager ¶
func NewManager(c *Config, ev *event.Dispatcher) *Manager
func (*Manager) Do ¶
func (m *Manager) Do(fn func(*Connection) error) error
Click to show internal directories.
Click to hide internal directories.