processor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutorTemplate added in v0.2.0

func NewExecutorTemplate(name string, path string, executor *DefaultExecutor, observability *common.Observability) (*toolsRender.TextTemplate, error)

Types

type Default

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

func NewDefault

func NewDefault(name string, options DefaultOptions, observability *common.Observability, processors *common.Processors) *Default

func (*Default) AddCommand

func (d *Default) AddCommand(name, path string) error

func (*Default) Commands

func (d *Default) Commands() []common.Command

func (*Default) Name

func (d *Default) Name() string

type DefaultCommand

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

func (*DefaultCommand) Aliases added in v0.0.3

func (dc *DefaultCommand) Aliases() []string

func (*DefaultCommand) Description

func (dc *DefaultCommand) Description() string

func (*DefaultCommand) Execute

func (*DefaultCommand) Fields added in v0.1.0

func (dc *DefaultCommand) Fields(bot common.Bot, message common.Message) []common.Field

func (*DefaultCommand) Name

func (dc *DefaultCommand) Name() string

func (*DefaultCommand) Params

func (dc *DefaultCommand) Params() []string

func (*DefaultCommand) Priority added in v0.3.4

func (dc *DefaultCommand) Priority() int

func (*DefaultCommand) Schedule added in v0.3.9

func (dc *DefaultCommand) Schedule() string

func (*DefaultCommand) Wrapper added in v0.3.4

func (dc *DefaultCommand) Wrapper() bool

type DefaultConfig added in v0.0.3

type DefaultConfig struct {
	Description string
	Params      []string
	Aliases     []string
	Response    DefaultReposne
	Fields      []common.Field
	Priority    int
	Wrapper     bool
	Schedule    string
}

type DefaultExecutor added in v0.2.0

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

func NewExecutor added in v0.2.0

func NewExecutor(name, path string, command *DefaultCommand, bot common.Bot, message common.Message, params common.ExecuteParams) (*DefaultExecutor, error)

func (*DefaultExecutor) After added in v0.2.0

func (de *DefaultExecutor) After(message common.Message) error

func (*DefaultExecutor) Duration added in v0.2.5

func (de *DefaultExecutor) Duration() bool

func (*DefaultExecutor) Error added in v0.2.5

func (de *DefaultExecutor) Error() bool

func (*DefaultExecutor) Original added in v0.2.5

func (de *DefaultExecutor) Original() bool

func (*DefaultExecutor) Response added in v0.2.5

func (de *DefaultExecutor) Response() common.Response

func (*DefaultExecutor) Visible added in v0.2.5

func (de *DefaultExecutor) Visible() bool

type DefaultOptions

type DefaultOptions struct {
	CommandsDir  string
	TemplatesDir string
	CommandExt   string
	ConfigExt    string
	Description  string
	Error        string
}

type DefaultPost added in v0.2.0

type DefaultPost struct {
	Name string
	Path string
	Obj  interface{}
}

type DefaultReposne added in v0.2.4

type DefaultReposne struct {
	Visible  bool
	Original bool
	Duration bool
}

Jump to

Keyboard shortcuts

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