irc

package
v0.0.0-...-67cc186 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pass      string
	Nick      string
	Reconnect bool
	RateLimit bool
	Server    string
	Channels  []string
}

type Irc

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

func Init

func Init(config *Config) *Irc

func (*Irc) Join

func (i *Irc) Join(channel string)

func (*Irc) ReadLine

func (i *Irc) ReadLine() *Message

func (*Irc) Say

func (i *Irc) Say(channel, message string)

func (*Irc) Send

func (i *Irc) Send(msg string) error

type Message

type Message struct {
	Channel     string
	User        string
	DisplayName string
	Me          bool
	Sub         bool
	Mod         bool
	UserType    string
	Type        MsgType
	Text        string
	Tags        map[string]string
}

func Parse

func Parse(line string) *Message

type MsgType

type MsgType int
const (
	MsgPrivmsg MsgType = iota
)

Jump to

Keyboard shortcuts

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