Documentation ¶
Index ¶
- type Client
- func (c *Client) Channels() []string
- func (c *Client) ClientPrefix() *irc.Prefix
- func (c *Client) HandleMessage(msg *irc.Message) error
- func (c *Client) HasCapability(capability string) bool
- func (c *Client) InChannel(channel string) bool
- func (c *Client) IsRegistered() bool
- func (c *Client) Join(channel, topic string, created time.Time, names []string) error
- func (c *Client) Message(channel, content string, author *irc.Prefix, time time.Time) error
- func (c *Client) Nickname() string
- func (c *Client) Password() string
- func (c *Client) ReadMessage() (*irc.Message, error)
- func (c *Client) Realname() string
- func (c *Client) ServerPrefix() *irc.Prefix
- func (c *Client) SetClientPrefix(prefix *irc.Prefix)
- func (c *Client) SetNickname(nickname string) error
- func (c *Client) SetServerPrefix(prefix *irc.Prefix)
- func (c *Client) Username() string
- func (c *Client) WriteMessage(m *irc.Message) error
- type ListEntry
- type Server
- type WhoisReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Server Server Conn *irc.Conn // contains filtered or unexported fields }
func (*Client) ClientPrefix ¶
func (c *Client) ClientPrefix() *irc.Prefix
func (*Client) HandleMessage ¶
func (*Client) HasCapability ¶
func (*Client) IsRegistered ¶
func (*Client) ReadMessage ¶
func (*Client) ServerPrefix ¶
func (c *Client) ServerPrefix() *irc.Prefix
func (*Client) SetClientPrefix ¶
func (c *Client) SetClientPrefix(prefix *irc.Prefix)
Can only be called before registration completes
func (*Client) SetNickname ¶
func (*Client) SetServerPrefix ¶
func (c *Client) SetServerPrefix(prefix *irc.Prefix)
func (*Client) WriteMessage ¶
type Server ¶
type Server interface { NetworkName() (string, error) ServerName() (string, error) ServerVersion() (string, error) ServerCreated() (time.Time, error) MOTD() ([]string, error) HandleNickname(nickname string) (string, error) // During registration HandleUsername(username string) (string, error) // During registration HandleRealname(realname string) (string, error) // During registration HandlePassword(password string) (string, error) // During registration HandlePing(nonce string) (string, error) // During registration HandleRegister() error // During registration HandleJoin(channel string) error HandleMessage(channel, content string) error HandleList() ([]ListEntry, error) HandleWhois(user string) (WhoisReply, error) }
Click to show internal directories.
Click to hide internal directories.