scheduledevents2

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 3 Imported by: 0

README

The sucessor of the original scheduled events system for yagpdb that was running on redis, this one however is running on postgres.

The old system did not support things like clustering and was overall a bit messy and unstructured.

Documentation

Index

Constants

View Source
const DBSchema = `` /* 376-byte string literal not displayed */

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(eventName string, dataDest interface{}, handler HandlerFunc)

func RegisterPlugin

func RegisterPlugin()

Types

type HandlerFunc

type HandlerFunc func(evt *models.ScheduledEvent, data interface{}) (err error, retry bool)

type RegisteredHandler

type RegisteredHandler struct {
	EvtName    string
	DataFormat interface{}
	Handler    HandlerFunc
}

type ScheduledEvents

type ScheduledEvents struct{}

func (*ScheduledEvents) BotStarted

func (se *ScheduledEvents) BotStarted()

func (*ScheduledEvents) Name

func (se *ScheduledEvents) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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