Documentation
¶
Index ¶
- func ValidFloodProfile(profile string) bool
- type Connection
- func (irc *Connection) AcknowledgedCaps() map[string]string
- func (irc *Connection) AddCallback(command string, handler func(ircmsg.Message)) ircevent.CallbackID
- func (irc *Connection) AddConnectCallback(handler func(ircmsg.Message)) ircevent.CallbackID
- func (irc *Connection) Connect() error
- func (irc *Connection) ConnectAndWait() error
- func (irc *Connection) ConnectAndWaitWithRetry(maxRetries int) error
- func (irc *Connection) CurrentNick() string
- func (irc *Connection) ISupport() map[string]string
- func (irc *Connection) Join(channel string) error
- func (irc *Connection) NewRateLimiter(floodProfile string) *RateLimiter
- func (irc *Connection) Part(channel string) error
- func (irc *Connection) Quit()
- func (irc *Connection) RemoveCallback(id ircevent.CallbackID)
- func (irc *Connection) SendRaw(line string) error
- func (irc *Connection) SendRawf(formatLine string, args ...any) error
- func (irc *Connection) SendRelayMessage(channel string, nickname string, message string) error
- func (irc *Connection) SetMode(mode string) error
- func (irc *Connection) Wait()
- type RateLimiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidFloodProfile ¶
Types ¶
type Connection ¶
type Connection struct {
FloodProfile string
// contains filtered or unexported fields
}
func NewIRC ¶
func NewIRC(server, password, nickname, realname string, useTLS, useSasl bool, saslUser, saslPass string, floodProfile string) *Connection
func (*Connection) AcknowledgedCaps ¶
func (irc *Connection) AcknowledgedCaps() map[string]string
func (*Connection) AddCallback ¶
func (irc *Connection) AddCallback(command string, handler func(ircmsg.Message)) ircevent.CallbackID
func (*Connection) AddConnectCallback ¶
func (irc *Connection) AddConnectCallback(handler func(ircmsg.Message)) ircevent.CallbackID
func (*Connection) Connect ¶
func (irc *Connection) Connect() error
func (*Connection) ConnectAndWait ¶
func (irc *Connection) ConnectAndWait() error
func (*Connection) ConnectAndWaitWithRetry ¶
func (irc *Connection) ConnectAndWaitWithRetry(maxRetries int) error
func (*Connection) CurrentNick ¶
func (irc *Connection) CurrentNick() string
func (*Connection) ISupport ¶
func (irc *Connection) ISupport() map[string]string
func (*Connection) Join ¶
func (irc *Connection) Join(channel string) error
func (*Connection) NewRateLimiter ¶
func (irc *Connection) NewRateLimiter(floodProfile string) *RateLimiter
func (*Connection) Part ¶
func (irc *Connection) Part(channel string) error
func (*Connection) Quit ¶
func (irc *Connection) Quit()
func (*Connection) RemoveCallback ¶
func (irc *Connection) RemoveCallback(id ircevent.CallbackID)
func (*Connection) SendRaw ¶
func (irc *Connection) SendRaw(line string) error
func (*Connection) SendRelayMessage ¶
func (irc *Connection) SendRelayMessage(channel string, nickname string, message string) error
func (*Connection) SetMode ¶
func (irc *Connection) SetMode(mode string) error
func (*Connection) Wait ¶
func (irc *Connection) Wait()
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func (*RateLimiter) Init ¶
func (r *RateLimiter) Init(profile string)
func (*RateLimiter) Wait ¶
func (r *RateLimiter) Wait() error
Click to show internal directories.
Click to hide internal directories.