Documentation
¶
Index ¶
- Variables
- type ClientConn
- func (cc *ClientConn) Close() error
- func (cc *ClientConn) Connect(h *Handlers) (err error)
- func (cc *ClientConn) Disconnect() error
- func (cc *ClientConn) Join(channels string) error
- func (cc *ClientConn) Mode(target, mode string) error
- func (cc *ClientConn) Notice(target, message string) error
- func (cc *ClientConn) Part(channel string) error
- func (cc *ClientConn) Ping(message string) error
- func (cc *ClientConn) PingPong(m *irc.Message) error
- func (cc *ClientConn) Pong(message string) error
- func (cc *ClientConn) PrivMsg(target, message string) error
- func (cc *ClientConn) Quit() error
- func (cc *ClientConn) QuitM(message string) error
- func (cc *ClientConn) RegisterClient() (err error)
- func (cc *ClientConn) RunHandlers(h *Handlers) (err error)
- func (cc *ClientConn) SendRaw(message string) (err error)
- func (cc *ClientConn) SetNick(nick string) error
- func (cc *ClientConn) SetOper() error
- func (cc *ClientConn) SetPassword() error
- func (cc *ClientConn) SetUser() error
- func (cc *ClientConn) Topic(target, topic string) error
- type Handlers
Constants ¶
This section is empty.
Variables ¶
var ( ErrParseMsg = errors.New("Unable to parse message") ErrInvalidMsg = errors.New("Message contains invalid characters") )
Errors
var ( // Valid message. Make sure it contains no newline chars // or the like that could allow for irc injection ValidMsg = regexp.MustCompile(`^(.)+$`) )
Some regular expressions
Functions ¶
This section is empty.
Types ¶
type ClientConn ¶
type ClientConn struct { Dial func(network, addr string) (net.Conn, error) TlsConfig *tls.Config Conn *irc.Conn Address string Password string Timeout time.Duration Nick string UserName string RealName string OpPassword string }
func (*ClientConn) Close ¶
func (cc *ClientConn) Close() error
func (*ClientConn) Connect ¶
func (cc *ClientConn) Connect(h *Handlers) (err error)
func (*ClientConn) Disconnect ¶
func (cc *ClientConn) Disconnect() error
func (*ClientConn) Join ¶
func (cc *ClientConn) Join(channels string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.2.1
func (*ClientConn) Mode ¶
func (cc *ClientConn) Mode(target, mode string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.2.3
func (*ClientConn) Notice ¶
func (cc *ClientConn) Notice(target, message string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.4.1
func (*ClientConn) Part ¶
func (cc *ClientConn) Part(channel string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.2.2
func (*ClientConn) Ping ¶
func (cc *ClientConn) Ping(message string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.6.2
func (*ClientConn) Pong ¶
func (cc *ClientConn) Pong(message string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.6.3
func (*ClientConn) PrivMsg ¶
func (cc *ClientConn) PrivMsg(target, message string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.4.1
func (*ClientConn) Quit ¶
func (cc *ClientConn) Quit() error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.1.6
func (*ClientConn) QuitM ¶
func (cc *ClientConn) QuitM(message string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.1.6
func (*ClientConn) RegisterClient ¶
func (cc *ClientConn) RegisterClient() (err error)
func (*ClientConn) RunHandlers ¶
func (cc *ClientConn) RunHandlers(h *Handlers) (err error)
func (*ClientConn) SendRaw ¶
func (cc *ClientConn) SendRaw(message string) (err error)
func (*ClientConn) SetNick ¶
func (cc *ClientConn) SetNick(nick string) error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.1.2
func (*ClientConn) SetOper ¶
func (cc *ClientConn) SetOper() error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.1.5
func (*ClientConn) SetPassword ¶
func (cc *ClientConn) SetPassword() error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.1.1
func (*ClientConn) SetUser ¶
func (cc *ClientConn) SetUser() error
RFC 1459 details: tools.ietf.org/html/rfc1459#section-4.1.3