Documentation ¶
Index ¶
- Constants
- Variables
- func Casefold(mapping, s string) string
- func EqualFold(mapping, s1, s2 string) bool
- type Client
- func (c *Client) Away(message string)
- func (c *Client) Casefold(s string) string
- func (c *Client) Connect(address string)
- func (c *Client) Connected() bool
- func (c *Client) EqualFold(s1, s2 string) bool
- func (c *Client) GetNick() string
- func (c *Client) Invite(nick, channel string)
- func (c *Client) Join(channels ...string)
- func (c *Client) Kick(channel string, users ...string)
- func (c *Client) List()
- func (c *Client) Mode(target, modes, params string)
- func (c *Client) Nick(nick string)
- func (c *Client) Notice(target, msg string)
- func (c *Client) Oper(name, password string)
- func (c *Client) Part(channels ...string)
- func (c *Client) Privmsg(target, msg string)
- func (c *Client) Quit()
- func (c *Client) Reconnect()
- func (c *Client) Registered() bool
- func (c *Client) Topic(channel string, topic ...string)
- func (c *Client) Whois(nick string)
- func (c *Client) Write(data string)
- func (c *Client) Writef(format string, a ...interface{})
- type ConnectionState
- type Features
- type Message
Constants ¶
View Source
const ( // ASCII maps a-z as the lower case of A-Z ASCII = "ascii" // RFC1459 maps a-z and {, |, }, ~ as the lower case of A-Z and [, \, ], ^ RFC1459 = "rfc1459" // RFC1459Strict maps a-z and {, |, } as the lower case of A-Z and [, \, ] RFC1459Strict = "strict-rfc1459" )
View Source
const ( Error = "ERROR" Join = "JOIN" Mode = "MODE" Nick = "NICK" Notice = "NOTICE" Part = "PART" Ping = "PING" Privmsg = "PRIVMSG" Quit = "QUIT" Topic = "TOPIC" ReplyWelcome = "001" ReplyYourHost = "002" ReplyCreated = "003" ReplyISupport = "005" ReplyLUserClient = "251" ReplyLUserOp = "252" ReplyLUserUnknown = "253" ReplyLUserChannels = "254" ReplyLUserMe = "255" ReplyAway = "301" ReplyWhoisUser = "311" ReplyWhoisServer = "312" ReplyWhoisOperator = "313" ReplyWhoisIdle = "317" ReplyEndOfWhois = "318" ReplyWhoisChannels = "319" ReplyList = "322" ReplyListEnd = "323" ReplyNoTopic = "331" ReplyTopic = "332" ReplyNamReply = "353" ReplyEndOfNames = "366" ReplyMotd = "372" ReplyMotdStart = "375" ReplyEndOfMotd = "376" ErrErroneousNickname = "432" ErrNicknameInUse = "433" ErrForward = "470" )
Variables ¶
View Source
var (
ErrBadProtocol = errors.New("This server does not speak IRC")
)
Functions ¶
Types ¶
type Client ¶
type Client struct { Server string Host string TLS bool TLSConfig *tls.Config Password string Username string Realname string HandleNickInUse func(string) string Messages chan *Message ConnectionChanged chan ConnectionState Features *Features // contains filtered or unexported fields }
func (*Client) Registered ¶
type ConnectionState ¶
type Features ¶ added in v0.6.1
type Features struct {
// contains filtered or unexported fields
}
func NewFeatures ¶ added in v0.6.1
func NewFeatures() *Features
Click to show internal directories.
Click to hide internal directories.