Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Away(message string)
- func (c *Client) Connect(address string)
- func (c *Client) Connected() 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) 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 Message
Constants ¶
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" ReplyNoTopic = "331" ReplyTopic = "332" ReplyNamReply = "353" ReplyEndOfNames = "366" ReplyMotd = "372" ReplyMotdStart = "375" ReplyEndOfMotd = "376" ErrErroneousNickname = "432" ErrNicknameInUse = "433" )
Variables ¶
View Source
var (
ErrBadProtocol = errors.New("This server does not speak IRC")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Server string
Host string
TLS bool
TLSConfig *tls.Config
Password string
Username string
Realname string
Messages chan *Message
ConnectionChanged chan ConnectionState
HandleNickInUse func(string) string
Support *iSupport
// contains filtered or unexported fields
}
func (*Client) Registered ¶
type ConnectionState ¶
Click to show internal directories.
Click to hide internal directories.