executor

package
v0.0.0-...-43c0f45 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReaderType = Type(iota)
	EntryType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry func(entry record.Entry, r *internal.RuneReader) (message.Message, error)

type Executor

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

func New

func New() *Executor

func (*Executor) RegisterForEntry

func (e *Executor) RegisterForEntry(key string, f Entry) bool

func (*Executor) RegisterForReader

func (e *Executor) RegisterForReader(key string, f Reader) bool

func (*Executor) Run

func (e *Executor) Run(entry record.Entry, r *internal.RuneReader, unmatched error) (message.Message, error)

type Reader

type Reader func(*internal.RuneReader) (message.Message, error)

type Type

type Type int

Jump to

Keyboard shortcuts

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