Versions in this module Expand all Collapse all v0 v0.8.2 Aug 18, 2024 v0.8.1 Jul 8, 2024 Changes in this version + const ERR_INVALIDCAPCMD + const ERR_UNKNOWNERROR + const MaxSASLLength + const RPL_CREATIONTIME + const RPL_GLOBALUSERS + const RPL_LOCALUSERS + const RPL_STATSPING + const RPL_TOPICWHOTIME + const RPL_VISIBLEHOST + const RPL_WHOISACCOUNT + const RPL_WHOISACTUALLY + const RPL_WHOISBOT + const RPL_WHOISCERTFP + const RPL_WHOISHOST + const RPL_WHOISMODES + const RPL_WHOISREGNICK + const RPL_WHOISSECURE + const RPL_WHOISSPECIAL + const RPL_WHOSPCRPL + const ServerTimeLayout + func FormatServerTime(t time.Time) string + func GenerateIsupport(tokens []string) []*irc.Message + func GenerateJoin(channels, keys []string) []*irc.Message + func GenerateMOTD(motd string) []*irc.Message + func GenerateMonitor(subcmd string, targets []string) []*irc.Message + func GenerateNamesReply(channel string, status ChannelStatus, members []string) []*irc.Message + func GenerateSASL(resp []byte) []*irc.Message + func GenerateWHOXReply(fields string, info *WHOXInfo) *irc.Message + func ParseCTCPMessage(msg *irc.Message) (cmd string, params string, ok bool) + func ParseWHOXOptions(options string) (fields, whoxToken string) + type CapRegistry struct + Available map[string]string + Enabled map[string]struct{} + func NewCapRegistry() CapRegistry + func (cr *CapRegistry) Del(name string) + func (cr *CapRegistry) IsAvailable(name string) bool + func (cr *CapRegistry) IsEnabled(name string) bool + func (cr *CapRegistry) SetEnabled(name string, enabled bool) + type CaseMapping func(string) string + var CaseMappingASCII CaseMapping = casemapASCII + var CaseMappingRFC1459 CaseMapping = casemapRFC1459 + var CaseMappingRFC1459Strict CaseMapping = casemapRFC1459Strict + func ParseCaseMapping(s string) CaseMapping + type CaseMappingMap struct + func NewCaseMappingMap[V interface{}](cm CaseMapping) CaseMappingMap[V] + func (cmm *CaseMappingMap[V]) Del(name string) + func (cmm *CaseMappingMap[V]) ForEach(f func(string, V)) + func (cmm *CaseMappingMap[V]) Get(name string) V + func (cmm *CaseMappingMap[V]) Has(name string) bool + func (cmm *CaseMappingMap[V]) Len() int + func (cmm *CaseMappingMap[V]) Set(name string, value V) + func (cmm *CaseMappingMap[V]) SetCaseMapping(newCasemap CaseMapping) + type ChannelStatus byte + const ChannelPrivate + const ChannelPublic + const ChannelSecret + func ParseChannelStatus(s string) (ChannelStatus, error) + type Membership struct + Mode byte + Prefix byte + type MembershipSet []Membership + func (ms *MembershipSet) Add(availableMemberships []Membership, newMembership Membership) + func (ms *MembershipSet) Remove(membership Membership) + type WHOXInfo struct + Account string + Channel string + Flags string + Hostname string + Nickname string + Realname string + Server string + Token string + Username string + func ParseWHOXReply(msg *irc.Message, fields string) (*WHOXInfo, error)