Documentation ¶
Index ¶
- Variables
- func GetFirstMatch(re *regexp.Regexp, matchee *string) (match *string, err error)
- type AmiAmi
- type Autoban
- type AutobanConf
- type AutobanMatches
- type Help
- type IRCMessage
- type Mal
- type MalConf
- type MyFigureCollection
- func (plug MyFigureCollection) Event() chan IRCMessage
- func (plug *MyFigureCollection) FindUri(candidate *string) (uri *string, err error)
- func (plug MyFigureCollection) Match(msg *IRCMessage) bool
- func (plug *MyFigureCollection) Setup(write chan IRCMessage, conf PluginConf)
- func (plug MyFigureCollection) Write(msg *IRCMessage, body *string) (err error)
- type Plamoya
- func (plug Plamoya) Event() chan IRCMessage
- func (plug *Plamoya) FindUri(candidate *string) (uri *string, err error)
- func (plug Plamoya) Match(msg *IRCMessage) bool
- func (plug *Plamoya) Setup(write chan IRCMessage, conf PluginConf)
- func (plug Plamoya) Write(msg *IRCMessage, body *string) (err error)
- type Plugin
- type PluginConf
- type Reddit
- type Vimeo
- type Youtube
- func (plug Youtube) Event() chan IRCMessage
- func (plug *Youtube) FindUri(candidate *string) (uri *string, err error)
- func (plug Youtube) Match(msg *IRCMessage) bool
- func (plug *Youtube) Setup(write chan IRCMessage, conf PluginConf)
- func (plug Youtube) Write(msg *IRCMessage, body *string) (err error)
- type YoutubeConf
Constants ¶
This section is empty.
Variables ¶
View Source
var HTML_ENTITIES = map[string]string{}/* 249 elements not displayed */
View Source
var VimeoEmptyResultsError = errors.New("Vimeo: Some of the fields were empty :(")
View Source
var VimeoNoResultsError = errors.New("Vimeo: No results")
Functions ¶
Types ¶
type AmiAmi ¶
type AmiAmi struct {
// contains filtered or unexported fields
}
func (AmiAmi) Event ¶
func (plug AmiAmi) Event() chan IRCMessage
func (AmiAmi) Match ¶
func (plug AmiAmi) Match(msg *IRCMessage) bool
func (*AmiAmi) Setup ¶
func (plug *AmiAmi) Setup(write chan IRCMessage, conf PluginConf)
type Autoban ¶
type Autoban struct {
// contains filtered or unexported fields
}
func (Autoban) Event ¶
func (plug Autoban) Event() chan IRCMessage
func (*Autoban) Match ¶
func (plug *Autoban) Match(msg *IRCMessage) bool
func (*Autoban) Setup ¶
func (plug *Autoban) Setup(write chan IRCMessage, conf PluginConf)
type AutobanConf ¶
type AutobanConf struct { Matches []AutobanMatches `json:"matchers"` User string `json:"notify_user"` }
type AutobanMatches ¶
type Help ¶
type Help struct {
// contains filtered or unexported fields
}
func (Help) Event ¶
func (plug Help) Event() chan IRCMessage
func (Help) Match ¶
func (plug Help) Match(msg *IRCMessage) bool
func (*Help) Setup ¶
func (plug *Help) Setup(write chan IRCMessage, conf PluginConf)
type IRCMessage ¶
type Mal ¶
type Mal struct {
// contains filtered or unexported fields
}
func (Mal) Event ¶
func (plug Mal) Event() chan IRCMessage
func (Mal) Match ¶
func (plug Mal) Match(msg *IRCMessage) bool
func (*Mal) Setup ¶
func (plug *Mal) Setup(write chan IRCMessage, conf PluginConf)
type MyFigureCollection ¶
type MyFigureCollection struct {
// contains filtered or unexported fields
}
func (MyFigureCollection) Event ¶
func (plug MyFigureCollection) Event() chan IRCMessage
func (*MyFigureCollection) FindUri ¶
func (plug *MyFigureCollection) FindUri(candidate *string) (uri *string, err error)
func (MyFigureCollection) Match ¶
func (plug MyFigureCollection) Match(msg *IRCMessage) bool
func (*MyFigureCollection) Setup ¶
func (plug *MyFigureCollection) Setup(write chan IRCMessage, conf PluginConf)
func (MyFigureCollection) Write ¶
func (plug MyFigureCollection) Write(msg *IRCMessage, body *string) (err error)
type Plamoya ¶
type Plamoya struct {
// contains filtered or unexported fields
}
func (Plamoya) Event ¶
func (plug Plamoya) Event() chan IRCMessage
func (Plamoya) Match ¶
func (plug Plamoya) Match(msg *IRCMessage) bool
func (*Plamoya) Setup ¶
func (plug *Plamoya) Setup(write chan IRCMessage, conf PluginConf)
type Plugin ¶
type Plugin interface { Match(*IRCMessage) bool Event() chan IRCMessage Setup(chan IRCMessage, PluginConf) }
type PluginConf ¶
type PluginConf struct { Mal MalConf `json:"mal"` Autoban AutobanConf `json:"autoban"` Youtube YoutubeConf `json:"youtube"` UserName string }
type Reddit ¶
type Reddit struct {
// contains filtered or unexported fields
}
func (Reddit) Event ¶
func (plug Reddit) Event() chan IRCMessage
func (Reddit) Match ¶
func (plug Reddit) Match(msg *IRCMessage) bool
func (*Reddit) Setup ¶
func (plug *Reddit) Setup(write chan IRCMessage, conf PluginConf)
type Vimeo ¶
type Vimeo struct {
// contains filtered or unexported fields
}
func (Vimeo) Event ¶
func (plug Vimeo) Event() chan IRCMessage
func (Vimeo) Match ¶
func (plug Vimeo) Match(msg *IRCMessage) bool
func (*Vimeo) Setup ¶
func (plug *Vimeo) Setup(write chan IRCMessage, conf PluginConf)
type Youtube ¶
type Youtube struct {
// contains filtered or unexported fields
}
func (Youtube) Event ¶
func (plug Youtube) Event() chan IRCMessage
func (Youtube) Match ¶
func (plug Youtube) Match(msg *IRCMessage) bool
func (*Youtube) Setup ¶
func (plug *Youtube) Setup(write chan IRCMessage, conf PluginConf)
type YoutubeConf ¶
type YoutubeConf struct {
Key string `json:"key"`
}
Click to show internal directories.
Click to hide internal directories.