squircy

package
v0.0.0-...-11b9739 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasHandler

type AliasHandler struct {
	// contains filtered or unexported fields
}

func (*AliasHandler) Handle

func (h *AliasHandler) Handle(e *irc.Event)

func (*AliasHandler) Id

func (h *AliasHandler) Id() string

func (*AliasHandler) Matches

func (h *AliasHandler) Matches(e *irc.Event) bool

type Configuration

type Configuration struct {
	Network       string
	Nick          string
	Username      string
	Password      string
	Channel       string
	OwnerNick     string
	OwnerHost     string
	RedisHost     string
	RedisDatabase int
}

type Handler

type Handler interface {
	Id() string
	Matches(e *irc.Event) bool
	Handle(e *irc.Event)
}

type Handlers

type Handlers map[string]Handler

type JavascriptScript

type JavascriptScript struct {
	// contains filtered or unexported fields
}

func (*JavascriptScript) Handle

func (h *JavascriptScript) Handle(e *irc.Event)

func (*JavascriptScript) Id

func (h *JavascriptScript) Id() string

func (*JavascriptScript) Matches

func (h *JavascriptScript) Matches(e *irc.Event) bool

type LispScript

type LispScript struct {
	// contains filtered or unexported fields
}

func (*LispScript) Handle

func (h *LispScript) Handle(e *irc.Event)

func (*LispScript) Id

func (h *LispScript) Id() string

func (*LispScript) Matches

func (h *LispScript) Matches(e *irc.Event) bool

type LuaScript

type LuaScript struct {
	// contains filtered or unexported fields
}

func (*LuaScript) Handle

func (h *LuaScript) Handle(e *irc.Event)

func (*LuaScript) Id

func (h *LuaScript) Id() string

func (*LuaScript) Matches

func (h *LuaScript) Matches(e *irc.Event) bool

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(config Configuration) *Manager

func (*Manager) Add

func (man *Manager) Add(h Handler)

func (*Manager) Debug

func (man *Manager) Debug(enabled bool)

func (*Manager) DebugEnabled

func (man *Manager) DebugEnabled() bool

func (*Manager) Handlers

func (man *Manager) Handlers() *Handlers

func (*Manager) Quit

func (man *Manager) Quit()

func (*Manager) Remove

func (man *Manager) Remove(h Handler)

func (*Manager) RemoveId

func (man *Manager) RemoveId(id string)

type NickservHandler

type NickservHandler struct {
	// contains filtered or unexported fields
}

func (*NickservHandler) Handle

func (h *NickservHandler) Handle(e *irc.Event)

func (*NickservHandler) Id

func (h *NickservHandler) Id() string

func (*NickservHandler) Matches

func (h *NickservHandler) Matches(e *irc.Event) bool

type ScriptDatastore

type ScriptDatastore map[string]string

type ScriptHandler

type ScriptHandler struct {
	// contains filtered or unexported fields
}

func (*ScriptHandler) Handle

func (h *ScriptHandler) Handle(e *irc.Event)

func (*ScriptHandler) Id

func (h *ScriptHandler) Id() string

func (*ScriptHandler) Matches

func (h *ScriptHandler) Matches(e *irc.Event) bool

Jump to

Keyboard shortcuts

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