irc

package
v6.0.0-...-c66eb8d Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidFloodProfile

func ValidFloodProfile(profile string) bool

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) SendRawf

func (irc *Connection) SendRawf(formatLine string, args ...any) 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

Jump to

Keyboard shortcuts

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