Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRCServer ¶
type IRCServer struct {
// Accounts maps username to password for SASL auth.
Accounts map[string]string
// contains filtered or unexported fields
}
IRCServer is a minimal mock IRC server for unit testing. It supports TLS, SASL PLAIN authentication, and basic IRC commands. PRIVMSG messages are broadcast to all clients in the same channel.
func NewIRCServer ¶
NewIRCServer creates and starts a mock IRC server with a self-signed TLS cert.
Click to show internal directories.
Click to hide internal directories.