Documentation ¶
Index ¶
- Constants
- type Channel
- type Connection
- func (c *Connection) Add_handler(code string, fn HandlerFunc)
- func (c *Connection) ChangeNick(nick string)
- func (c *Connection) Ctcp(code string, target string, msg string)
- func (c *Connection) CtcpResponse(code string, target string, msg string)
- func (c *Connection) Get_channel(channel string) *Channel
- func (c *Connection) Init()
- func (c *Connection) Join(channel string)
- func (c *Connection) Notice(target string, msg string)
- func (c *Connection) Part(channel string)
- func (c *Connection) Privmsg(target string, msg string)
- func (c *Connection) Send(msg string)
- func (c *Connection) Start()
- type HandlerFunc
- type IrcManager
- type User
Constants ¶
View Source
const ( CH_TYPE_SERVER string = "server" CH_TYPE_CHANNEL string = "channel" CH_TYPE_USER string = "user" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Type string `json:"type"` Name string `json:"name"` Timestamp uint64 `json:"timestamp,omitempty"` Mode string `json:"mode,omitempty"` Names []string `json:"names,omitempty"` // contains filtered or unexported fields }
func (*Channel) Finalize_names ¶
func (ch *Channel) Finalize_names()
func (*Channel) Refresh_names ¶
func (ch *Channel) Refresh_names()
type Connection ¶
type Connection struct { Name string `json:"name"` Host string `json:"host"` Port int `json:"port"` Tls bool `json:"-"` Nick string `json:"nick"` Channels []*Channel `json:"channels"` // contains filtered or unexported fields }
func (*Connection) Add_handler ¶
func (c *Connection) Add_handler(code string, fn HandlerFunc)
func (*Connection) ChangeNick ¶
func (c *Connection) ChangeNick(nick string)
func (*Connection) CtcpResponse ¶
func (c *Connection) CtcpResponse(code string, target string, msg string)
func (*Connection) Get_channel ¶
func (c *Connection) Get_channel(channel string) *Channel
func (*Connection) Init ¶
func (c *Connection) Init()
func (*Connection) Join ¶
func (c *Connection) Join(channel string)
func (*Connection) Notice ¶
func (c *Connection) Notice(target string, msg string)
func (*Connection) Part ¶
func (c *Connection) Part(channel string)
func (*Connection) Privmsg ¶
func (c *Connection) Privmsg(target string, msg string)
func (*Connection) Send ¶
func (c *Connection) Send(msg string)
func (*Connection) Start ¶
func (c *Connection) Start()
type HandlerFunc ¶
type HandlerFunc func(*Connection, *types.Event)
type IrcManager ¶
type IrcManager struct { Conf *core.Config Conns []*Connection Events chan *types.Event }
func (*IrcManager) Start ¶
func (im *IrcManager) Start()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.