client

package
v0.0.0-...-9c24b62 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(*irc.Message)

type Client

type Client struct {
	Address   string
	Nickname  string
	Channels  []string
	TlsConfig *tls.Config    // http://golang.org/pkg/crypto/tls/#Config
	Delay     *time.Duration // Delay to avoid exess flood
	Quit      chan bool

	Error chan error
	// contains filtered or unexported fields
}

func New

func New(address, nickname string, channels []string, tlsConfig *tls.Config, delay *time.Duration) *Client

func (*Client) AddCallback

func (j *Client) AddCallback(name string, cb Callback)

func (*Client) Connect

func (j *Client) Connect() (err error)

func (*Client) Disconnect

func (j *Client) Disconnect()

func (*Client) Join

func (j *Client) Join(channel string)

func (*Client) Names

func (j *Client) Names(channel string)

func (*Client) Nick

func (j *Client) Nick(nickname string)

func (*Client) Pong

func (j *Client) Pong(payload string)

func (*Client) Privmsg

func (j *Client) Privmsg(target, message string)

func (*Client) QuitMsg

func (j *Client) QuitMsg()

func (*Client) Raw

func (j *Client) Raw(data string)

func (*Client) User

func (j *Client) User(username, realname string)

Jump to

Keyboard shortcuts

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