Documentation ¶
Overview ¶
Package slackbee is a Bee that can connect to Slack.
Index ¶
- type SlackBee
- type SlackBeeFactory
- func (factory *SlackBeeFactory) Actions() []bees.ActionDescriptor
- func (factory *SlackBeeFactory) Description() string
- func (factory *SlackBeeFactory) Events() []bees.EventDescriptor
- func (factory *SlackBeeFactory) ID() string
- func (factory *SlackBeeFactory) Image() string
- func (factory *SlackBeeFactory) LogoColor() string
- func (factory *SlackBeeFactory) Name() string
- func (factory *SlackBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
- func (factory *SlackBeeFactory) Options() []bees.BeeOptionDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackBee ¶
SlackBee is a Bee that can connect to Slack.
func (*SlackBee) Action ¶
func (mod *SlackBee) Action(action bees.Action) []bees.Placeholder
Action triggers the action passed to it.
func (*SlackBee) ReloadOptions ¶
func (mod *SlackBee) ReloadOptions(options bees.BeeOptions)
ReloadOptions parses the config options and initializes the Bee.
type SlackBeeFactory ¶
type SlackBeeFactory struct {
bees.BeeFactory
}
SlackBeeFactory is a factory for SlackBees.
func (*SlackBeeFactory) Actions ¶
func (factory *SlackBeeFactory) Actions() []bees.ActionDescriptor
Actions describes the available actions provided by this Bee.
func (*SlackBeeFactory) Description ¶
func (factory *SlackBeeFactory) Description() string
Description returns the description of this Bee.
func (*SlackBeeFactory) Events ¶
func (factory *SlackBeeFactory) Events() []bees.EventDescriptor
Events describes the available events provided by this Bee.
func (*SlackBeeFactory) ID ¶
func (factory *SlackBeeFactory) ID() string
ID returns the ID of this Bee.
func (*SlackBeeFactory) Image ¶
func (factory *SlackBeeFactory) Image() string
Image returns the filename of an image for this Bee.
func (*SlackBeeFactory) LogoColor ¶
func (factory *SlackBeeFactory) LogoColor() string
LogoColor returns the preferred logo background color (used by the admin interface).
func (*SlackBeeFactory) Name ¶
func (factory *SlackBeeFactory) Name() string
Name returns the name of this Bee.
func (*SlackBeeFactory) New ¶
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 ¶
func (factory *SlackBeeFactory) Options() []bees.BeeOptionDescriptor
Options returns the options available to configure this Bee.