manager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2016 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyLoaded = errors.New("Already loaded.")
)

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

func (m *Manager) GetParsers() []Parser

func (*Manager) Parse

func (m *Manager) Parse(u *url.URL) (string, parsers.ParseResult)

func (*Manager) RegisterParser

func (m *Manager) RegisterParser(parser Parser) error

func (*Manager) TrackOutput

func (m *Manager) TrackOutput(target, t string) (shouldNotSend bool)

func (*Manager) TrackUrl

func (m *Manager) TrackUrl(target string, u *url.URL) (shouldIgnore bool)

type Parser

type Parser interface {
	Init() error
	Name() string
	Parse(u *url.URL, referer *url.URL) parsers.ParseResult
}

Jump to

Keyboard shortcuts

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