Documentation
¶
Index ¶
- func ClientDo(c Client, msg *irc.Message) error
- func EncodeMessage(m irc.Message) string
- func IsChan(ch string) bool
- func KeyChanMsg(ch string) string
- func KeyOperCtl(n string) string
- func KeyUserMsg(n string) string
- func NewKeyEncoder(ke keyencode.KeyEncoder) keyencode.KeyEncoder
- type ChannelCtl
- type ChannelNick
- type ChannelNicks
- type Client
- type Config
- type Conn
- func (c *Conn) Close()
- func (c *Conn) Err() <-chan error
- func (c *Conn) Reader() <-chan *irc.Message
- func (c *Conn) Send(ctx context.Context, cmd string, params ...string) error
- func (c *Conn) SendMsg(ctx context.Context, msg irc.Message) error
- func (c *Conn) SendMsgSync(msg irc.Message) error
- func (c *Conn) Writer() chan<- irc.Message
- type ConnIRC
- type ModeValue
- type OperValue
- type Server
- type UserValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeMessage ¶
func EncodeMessage(m irc.Message) string
func KeyChanMsg ¶
func KeyOperCtl ¶
func KeyUserMsg ¶
func NewKeyEncoder ¶
func NewKeyEncoder(ke keyencode.KeyEncoder) keyencode.KeyEncoder
NewKeyEncoder creates a key encoder that will encode sensitive parts of a given key.
Types ¶
type ChannelCtl ¶
ChannelCtl represents a channel in etcd.
type ChannelNick ¶
ChannelNick contains per-channel information for a nick.
type ChannelNicks ¶
type ChannelNicks struct {
Nicks []ChannelNick
}
ChannelNicks is one per server session; holds all nick data for a channel.
type Client ¶
type Client interface { ConnIRC Nick(n string) error Mode(m []string) error Join(ch string) error List(ch []string) error Names(ch string) error Ping(msg string) error Part(ch, msg string) error Quit(msg string) error Whois(n string) error Who(args []string) error PrivMsg(target, msg string) error Topic(ch string, msg *string) error Away(msg string) error Oper(login, pass string) error Die() error Kick(ch string, nicks []string, msg string) error Close() error // contains filtered or unexported methods }
Client accepts messages from a connected IRC client.
type Config ¶
type Config struct { NetworkName string HostName string Motd string MaxChannels uint MaxBans uint NickLen uint TopicLen uint PinnedUserModes string }
config defines the server configuration for IRC.
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewConn ¶
func NewConn(rwc io.ReadWriteCloser) *Conn
func (*Conn) SendMsgSync ¶
type OperValue ¶
func NewOperValue ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.