irc

package
v0.0.0-...-4dd2fcc Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Nickname string
	Realname string
	Channels []string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conn net.Conn) *Client

func (*Client) CmdHook

func (c *Client) CmdHook(cmd string, hook Hook)

func (*Client) Connected

func (c *Client) Connected(channel string) bool

func (*Client) Handle

func (c *Client) Handle(data string, ch chan error)

func (*Client) Setup

func (c *Client) Setup(nick, name, host string)

func (*Client) Write

func (c *Client) Write(format string, argv ...interface{}) error

type Hook

type Hook func(*Client, Message) error

type Message

type Message struct {
	Sender   Sender
	Receiver string
	Command  string
	Data     string
}

type Sender

type Sender struct {
	Name string
	Host string
}

Jump to

Keyboard shortcuts

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