workflow

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotWorkflow

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

func NewBotWorkflow

func NewBotWorkflow(root, mode string, info *commons.SettingsBotInfo, logger gg_log.ILogger, events *gg_events.Emitter) (instance *BotWorkflow, err error)

func (*BotWorkflow) AddHandler

func (instance *BotWorkflow) AddHandler(handler commons.MessageHandler)

func (*BotWorkflow) ClearHandlers

func (instance *BotWorkflow) ClearHandlers()

func (*BotWorkflow) SetHandlers

func (instance *BotWorkflow) SetHandlers(handlers []commons.MessageHandler)

func (*BotWorkflow) Start

func (instance *BotWorkflow) Start() (err error)

func (*BotWorkflow) Stop

func (instance *BotWorkflow) Stop()

type BotWorkflowEngine

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

func NewBotWorkflowEngine

func NewBotWorkflowEngine(root string, info *commons.SettingsBotInfo, logger gg_log.ILogger) (instance *BotWorkflowEngine, err error)

func (*BotWorkflowEngine) Handle

func (instance *BotWorkflowEngine) Handle(bot commons.IBot, message *commons.BotMessage) (handled bool, response *commons.BotMessage)

func (*BotWorkflowEngine) Stop

func (instance *BotWorkflowEngine) Stop()

Jump to

Keyboard shortcuts

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