api

package
v0.0.0-...-4059e7f Latest Latest
Warning

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

Go to latest
Published: May 27, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package api defines the api for the commands we support

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Initialize(keys map[string]string)
	Execute(appengine.Context, *SlackCommand, string) (string, error)
	Usage(appengine.Context, *SlackCommand, string) string
	Help(appengine.Context, *SlackCommand, string) (string, error)
}

type JarvisFunction

type JarvisFunction func(appengine.Context, *SlackCommand, string) (string, error)

type JarvisRegisterFunction

type JarvisRegisterFunction func() ([]string, Command)

type SlackCommand

type SlackCommand struct {
	Token       string
	TeamID      string
	TeamDomain  string
	ChannelID   string
	ChannelName string
	UserID      string
	UserName    string
	Command     string
	Text        string
	LowerText   string
}

Jump to

Keyboard shortcuts

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