worker

package
v0.0.0-...-108f9d1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachButton

func AttachButton(taskname string, msg *discordgo.MessageSend)

func StripFilename

func StripFilename(str string) string

Types

type ProcessDiscordWorker

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

func (*ProcessDiscordWorker) Name

func (f *ProcessDiscordWorker) Name() string

func (*ProcessDiscordWorker) Work

func (f *ProcessDiscordWorker) Work(outputList []*dfpb.Output, lastinput *dfpb.Input, settingsdata []byte) (bool, error)

lastoutput *dfpb.Output

type ProcessFileWorker

type ProcessFileWorker struct {
}

func (*ProcessFileWorker) Name

func (f *ProcessFileWorker) Name() string

func (*ProcessFileWorker) Work

func (f *ProcessFileWorker) Work(outputList []*dfpb.Output, lastinput *dfpb.Input, settingsdata []byte) (bool, error)

type ProcessWorkerIface

type ProcessWorkerIface interface {
	Name() string
	Work(outputList []*dfpb.Output, lastinput *dfpb.Input, settings []byte) (bool, error)
}

type WorkerLoader

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

func InitWorkerLoader

func InitWorkerLoader(discordservices map[string]*service.DiscordService) *WorkerLoader

func (*WorkerLoader) GetWorker

func (wl *WorkerLoader) GetWorker(name string, servicekey string) ProcessWorkerIface

Jump to

Keyboard shortcuts

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