beehive: github.com/muesli/beehive/bees/slackbee Index | Files

package slackbee

import "github.com/muesli/beehive/bees/slackbee"

Package slackbee is a Bee that can connect to Slack.

Index

Package Files

slackbee.go slackbeefactory.go

type SlackBee Uses

type SlackBee struct {
    bees.Bee
    // contains filtered or unexported fields
}

SlackBee is a Bee that can connect to Slack.

func (*SlackBee) Action Uses

func (mod *SlackBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*SlackBee) ReloadOptions Uses

func (mod *SlackBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*SlackBee) Run Uses

func (mod *SlackBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type SlackBeeFactory Uses

type SlackBeeFactory struct {
    bees.BeeFactory
}

SlackBeeFactory is a factory for SlackBees.

func (*SlackBeeFactory) Actions Uses

func (factory *SlackBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*SlackBeeFactory) Description Uses

func (factory *SlackBeeFactory) Description() string

Description returns the description of this Bee.

func (*SlackBeeFactory) Events Uses

func (factory *SlackBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*SlackBeeFactory) ID Uses

func (factory *SlackBeeFactory) ID() string

ID returns the ID of this Bee.

func (*SlackBeeFactory) Image Uses

func (factory *SlackBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*SlackBeeFactory) LogoColor Uses

func (factory *SlackBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*SlackBeeFactory) Name Uses

func (factory *SlackBeeFactory) Name() string

Name returns the name of this Bee.

func (*SlackBeeFactory) New Uses

func (factory *SlackBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*SlackBeeFactory) Options Uses

func (factory *SlackBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Package slackbee imports 5 packages (graph) and is imported by 14 packages. Updated 2019-10-31. Refresh now. Tools for package owners.