Documentation ¶
Index ¶
- Variables
- type Manager
- func (m *Manager) AntifloodIrcConn(c *irc.Connection) *ircConnectionProxy
- func (m *Manager) GetParsers() []Parser
- func (m *Manager) NotifyUserJoined(target string, source string) error
- func (m *Manager) Parse(ctx context.Context, currentURL *url.URL) (string, parsers.ParseResult)
- func (m *Manager) RegisterParser(ctx context.Context, parser Parser) error
- func (m *Manager) TrackOutput(target, t string) (shouldNotSend bool, err error)
- func (m *Manager) TrackUrl(target string, u *url.URL) (shouldIgnore bool, err error)
- func (m *Manager) TrackUser(target string, source string) (shouldIgnore bool)
- type Parser
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyLoaded = errors.New("already loaded")
ErrAlreadyLoaded is returned when a parser attempting to register is already found to be loaded with the same ID.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) AntifloodIrcConn ¶
func (m *Manager) AntifloodIrcConn(c *irc.Connection) *ircConnectionProxy
func (*Manager) GetParsers ¶
GetParsers returns a slice of currently loaded parsers.
func (*Manager) NotifyUserJoined ¶ added in v1.0.2
func (*Manager) RegisterParser ¶
RegisterParser is called by a parser package to register itself automatically.
func (*Manager) TrackOutput ¶
Click to show internal directories.
Click to hide internal directories.