processor

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) Description

func (dc *DefaultCommand) Description() string

func (*DefaultCommand) Execute

func (dc *DefaultCommand) Execute(bot common.Bot, user common.User, params common.ExecuteParams) (string, []*common.Attachment, error)

func (*DefaultCommand) Name

func (dc *DefaultCommand) Name() string

func (*DefaultCommand) Params

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

type DefaultOptions

type DefaultOptions struct {
	Dir         string
	Pattern     string
	Description string
	Error       string
}

Jump to

Keyboard shortcuts

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