resources

package
v0.0.0-...-40f30c5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotLookup = map[string]core.Bot{
	"sheriff": &bots.Sheriff{},
	"8ball":   &bots.EightBall{},
}

Functions

func CreateAndConfigureBots

func CreateAndConfigureBots(wrangler *core.Wrangler) (map[string]core.Bot, error)

Types

type BotConfig

type BotConfig struct {
	Enabled bool            `json:"enabled"`
	Data    json.RawMessage `json:"data"`
}

type BotResource

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

func NewBotResource

func NewBotResource(wrangler *core.Wrangler) (*BotResource, error)

func (BotResource) Bind

func (b BotResource) Bind(container *restful.Container)

func (BotResource) Comment

func (b BotResource) Comment() string

func (BotResource) FailedMsg

func (b BotResource) FailedMsg() hipchat.NotificationRequest

FailedMsg returns the default notification for failed requests

func (BotResource) HelpMsg

HelpMsg returns the default notification for the /bot --help command

func (BotResource) Run

func (b BotResource) Run(ctx *selfdiagnose.Context, result *selfdiagnose.Result)

Selfdiagnose

Jump to

Keyboard shortcuts

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