executor

package
v0.0.0-...-8bc1aab Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecHandler

func ExecHandler(author, message, script string) (string, bool)

Types

type Handlers

type Handlers struct {
	Scripts []Script `json:"scripts"`
}

type Message

type Message struct {
	Author  string
	Message string
	Result  []string
}

func NewMessage

func NewMessage(author, message string) *Message

type Router

type Router struct{}

func NewRouter

func NewRouter() *Router

func (Router) Route

func (r Router) Route(message *Message)

func (*Router) Run

func (r *Router) Run(pipe chan *Message)

type Script

type Script struct {
	Template string `json:"template"`
	Name     string `json:"name"`
}

Jump to

Keyboard shortcuts

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