irc

package
v0.0.0-...-59c2f9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Add_names

func (ch *Channel) Add_names(names []string)

func (*Channel) Finalize_names

func (ch *Channel) Finalize_names()

func (*Channel) Part

func (ch *Channel) Part()

func (*Channel) Refresh_names

func (ch *Channel) Refresh_names()

func (*Channel) Set_mode

func (ch *Channel) Set_mode(mode string)

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) Ctcp

func (c *Connection) Ctcp(code string, target string, msg 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()

type User

type User struct {
	// contains filtered or unexported fields
}

func (*User) Set_mode

func (u *User) Set_mode(mode string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL