Documentation
¶
Index ¶
- type Connection
- func (irc *Connection) AddCallback(command string, handler func(ircmsg.Message)) ircevent.CallbackID
- func (irc *Connection) AddConnectCallback(handler func(ircmsg.Message)) ircevent.CallbackID
- func (irc *Connection) Connect() error
- func (irc *Connection) ConnectAndWait() error
- func (irc *Connection) ConnectAndWaitWithRetry(maxRetries int) error
- func (irc *Connection) CurrentNick() string
- func (irc *Connection) Join(channel string) error
- func (irc *Connection) NewRateLimiter(floodProfile string) *RateLimiter
- func (irc *Connection) Part(channel string) error
- func (irc *Connection) Quit()
- func (irc *Connection) RemoveCallback(id ircevent.CallbackID)
- func (irc *Connection) SendRaw(line string) error
- func (irc *Connection) SendRawf(formatLine string, args ...interface{}) error
- func (irc *Connection) Wait()
- type Logger
- type RateLimiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
FloodProfile string
// contains filtered or unexported fields
}
func (*Connection) AddCallback ¶
func (irc *Connection) AddCallback(command string, handler func(ircmsg.Message)) ircevent.CallbackID
func (*Connection) AddConnectCallback ¶
func (irc *Connection) AddConnectCallback(handler func(ircmsg.Message)) ircevent.CallbackID
func (*Connection) Connect ¶
func (irc *Connection) Connect() error
func (*Connection) ConnectAndWait ¶
func (irc *Connection) ConnectAndWait() error
func (*Connection) ConnectAndWaitWithRetry ¶
func (irc *Connection) ConnectAndWaitWithRetry(maxRetries int) error
func (*Connection) CurrentNick ¶
func (irc *Connection) CurrentNick() string
func (*Connection) Join ¶
func (irc *Connection) Join(channel string) error
func (*Connection) NewRateLimiter ¶
func (irc *Connection) NewRateLimiter(floodProfile string) *RateLimiter
func (*Connection) Part ¶
func (irc *Connection) Part(channel string) error
func (*Connection) Quit ¶
func (irc *Connection) Quit()
func (*Connection) RemoveCallback ¶
func (irc *Connection) RemoveCallback(id ircevent.CallbackID)
func (*Connection) SendRaw ¶
func (irc *Connection) SendRaw(line string) error
func (*Connection) SendRawf ¶
func (irc *Connection) SendRawf(formatLine string, args ...interface{}) error
func (*Connection) Wait ¶
func (irc *Connection) Wait()
type Logger ¶
type Logger interface {
// Debugf uses fmt.Sprintf to log a templated message with an debug priority
Debugf(template string, args ...interface{})
// Infof uses fmt.Sprintf to log a templated message with an info priority
Infof(template string, args ...interface{})
// Warnf uses fmt.Sprintf to log a templated message with an warning priority
Warnf(template string, args ...interface{})
// Errorf uses fmt.Sprintf to log a templated message with an error priority
Errorf(template string, args ...interface{})
// Panicf uses fmt.Sprintf to log a templated message with an error priority
Panicf(template string, args ...interface{})
// Fatalf uses fmt.Sprintf to log a templated message with a fatal priority and then exit the application
Fatalf(template string, args ...interface{})
}
Logger interface for loosely typed printf-style formatted error logging messages
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func (*RateLimiter) Init ¶
func (r *RateLimiter) Init(profile string)
func (*RateLimiter) Wait ¶
func (r *RateLimiter) Wait() error
Click to show internal directories.
Click to hide internal directories.