Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Halt = errors.New("Execution limit exceeded")
View Source
var UnknownScriptType = errors.New("Unknown script type")
Functions ¶
This section is empty.
Types ¶
type ScriptManager ¶
type ScriptManager struct {
// contains filtered or unexported fields
}
func NewScriptManager ¶
func NewScriptManager(repo ScriptRepository, l *log.Logger, e event.EventManager, ircmanager *irc.IrcConnectionManager, config *config.Configuration) *ScriptManager
func (*ScriptManager) ReInit ¶
func (m *ScriptManager) ReInit()
func (*ScriptManager) Repl ¶
func (m *ScriptManager) Repl()
func (*ScriptManager) RunUnsafe ¶
func (m *ScriptManager) RunUnsafe(t ScriptType, code string) (result interface{}, err error)
type ScriptRepository ¶
type ScriptRepository struct {
// contains filtered or unexported fields
}
func NewScriptRepository ¶
func NewScriptRepository(database *db.DB) ScriptRepository
func (*ScriptRepository) Delete ¶
func (repo *ScriptRepository) Delete(id int)
func (*ScriptRepository) Fetch ¶
func (repo *ScriptRepository) Fetch(id int) *Script
func (*ScriptRepository) FetchAll ¶
func (repo *ScriptRepository) FetchAll() []*Script
func (*ScriptRepository) Save ¶
func (repo *ScriptRepository) Save(script *Script)
Click to show internal directories.
Click to hide internal directories.