Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = twid.Module{ Name: "discord", New: func() twid.Handler { return NewEmptyHandler() }, }
Module is the twidiscord module.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the main handler that binds Twipi and Discord.
func NewEmptyHandler ¶
func NewEmptyHandler() *Handler
NewEmptyHandler creates a new empty Handler. It is used to initialize its dependencies later.
func NewHandler ¶
func NewHandler(twipisrv *twipi.ConfiguredServer, cfg twidiscord.Config) *Handler
NewHandler creates a new handler with the given twipi server and config.
func (*Handler) BindTwipi ¶
func (h *Handler) BindTwipi(twipisrv *twipi.ConfiguredServer)
BindTwipi implements twid.TwipiBinder.
func (*Handler) Config ¶
Config returns the local configuration instance for this module. It implements twid.Handler.
func (*Handler) HTTPHandler ¶
HTTPHandler implements twid.HTTPCommander.
func (*Handler) HTTPPrefix ¶
HTTPPrefix implements twid.HTTPCommander.
func (*Handler) HandleMessage ¶
HandleMessage implements twid.MessageHandler.
Click to show internal directories.
Click to hide internal directories.