Versions in this module Expand all Collapse all v5 v5.0.0 Jul 2, 2021 Changes in this version + var DefaultConnectionConfig = ConnectionConfig + func NewCapabilityHandler(logger Logger) *capabilityHandler + func NewDebugHandler(logger Logger) *debugHandler + func NewErrorHandler() *errorHandler + func NewNickHandler(preferredNickname string, logger Logger) *nickHandler + func NewPingHandler() *pingHandler + func NewSupportHandler() *supportParser + type CapabilityListener interface + SubscribeCapAdd func(receiver func(*Connection, *CapabilityStruct)) + SubscribeCapDel func(receiver func(*Connection, *CapabilityStruct)) + UnsubscribeCapAdd func(receiver func(*Connection, *CapabilityStruct)) + UnsubscribeCapDel func(receiver func(*Connection, *CapabilityStruct)) + type CapabilityPublisher interface + PublishCapAdd func(conn *Connection, capability *CapabilityStruct) + PublishCapDel func(conn *Connection, capability *CapabilityStruct) + type CapabilityStruct struct + type Channel struct + Name string + type ClientConfig struct + Nick string + Password string + Realname string + Server string + UseTLS bool + User string + type Connection struct + ClientConfig ClientConfig + ConnConfig ConnectionConfig + Finished chan bool + FloodProfile string + Nickname string + Password string + SASLAuth bool + SASLPass string + SASLUser string + Server string + UseTLS bool + func NewIRC(server, password, nickname, realname string, useTLS, useSasl bool, ...) (error, *Connection) + func (irc *Connection) AddInboundHandler(s string, f func(em *EventManager, c *Connection, m *Message)) + func (irc *Connection) AddInboundHandlers(handlers map[string]func(em *EventManager, c *Connection, m *Message)) + func (irc *Connection) AddOutboundHandler(f func(em *EventManager, c *Connection, m string)) + func (irc *Connection) AddRawHandler(f func(c *Connection, m RawMessage)) + func (irc *Connection) AddRawHandlers(handlers []func(c *Connection, m RawMessage)) + func (irc *Connection) Connect() error + func (irc *Connection) ConnectAndWait() error + func (irc *Connection) ConnectAndWaitWithRetry(maxRetries int) error + func (irc *Connection) Init() + func (irc *Connection) NewRateLimiter(w io.Writer, floodProfile string) *RateLimiter + func (irc *Connection) Quit() + func (irc *Connection) SendRaw(line string) + func (irc *Connection) SendRawf(formatLine string, args ...interface{}) + func (irc *Connection) Wait() + type ConnectionConfig struct + KeepAlive time.Duration + Timeout time.Duration + type EventManager struct + func NewEventManager() *EventManager + func (irc *EventManager) PublishCapAdd(conn *Connection, capability *CapabilityStruct) + func (irc *EventManager) PublishCapDel(conn *Connection, capability *CapabilityStruct) + func (irc *EventManager) PublishChannelMessage(message Message) + func (irc *EventManager) PublishChannelPart(channel Channel) + func (irc *EventManager) SubscribeCapAdd(receiver func(*Connection, *CapabilityStruct)) + func (irc *EventManager) SubscribeCapDel(receiver func(*Connection, *CapabilityStruct)) + func (irc *EventManager) SubscribeChannelMessage(receiver func(Message)) + func (irc *EventManager) UnsubscribeCapAdd(receiver func(*Connection, *CapabilityStruct)) + func (irc *EventManager) UnsubscribeCapDel(receiver func(*Connection, *CapabilityStruct)) + func (irc *EventManager) UnsubscribeChannelMessage(receiver func(Message)) + func (irc *EventManager) UnsubscribeChannelPart(receiver func(Channel)) + func (irc EventManager) SubscribeChannelPart(receiver func(Channel)) + type InboundHandler struct + Handler func(*Connection, *Message) + Verb string + type Logger interface + Debugf func(template string, args ...interface{}) + Errorf func(template string, args ...interface{}) + Infof func(template string, args ...interface{}) + Panicf func(template string, args ...interface{}) + Warnf func(template string, args ...interface{}) + type Message struct + Params []string + Raw string + Source string + Tags string + Verb string + type RateLimiter struct + func (r *RateLimiter) Init(profile string) + func (r *RateLimiter) Write(p []byte) (n int, err error) + type RawMessage struct + type SaslHandler struct + SASLAuth bool + SASLPass string + SASLUser string + func NewSASLHandler(useSasl bool, saslUser string, saslPass string, logger Logger) *SaslHandler + func (h *SaslHandler) Install(em *EventManager, c *Connection) + type Sender interface + SendRaw func(string) + SendRawf func(string, ...interface{}) Other modules containing this package github.com/greboid/irc github.com/greboid/irc/v2 github.com/greboid/irc/v3 github.com/greboid/irc/v4 github.com/greboid/irc/v6 github.com/greboid/irc/v7