Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkProvider ¶
LinkProvider is a callback to be registered with the Plugin. It takes the same parameters as a normal IRC callback in addition to a *url.URL representing the found url. It returns true if it was able to handle that url and false otherwise.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin stores all registered URL LinkProviders
func (*Plugin) RegisterProvider ¶
func (p *Plugin) RegisterProvider(domain string, f LinkProvider) error
RegisterProvider registers a LinkProvider for a specific domain.
Click to show internal directories.
Click to hide internal directories.