Documentation ¶
Overview ¶
Package devrantbee is a Bee that can post blogs & quotes on Devrant.
Index ¶
- type DevrantBee
- type DevrantBeeFactory
- func (factory *DevrantBeeFactory) Actions() []bees.ActionDescriptor
- func (factory *DevrantBeeFactory) Description() string
- func (factory *DevrantBeeFactory) Events() []bees.EventDescriptor
- func (factory *DevrantBeeFactory) ID() string
- func (factory *DevrantBeeFactory) Image() string
- func (factory *DevrantBeeFactory) LogoColor() string
- func (factory *DevrantBeeFactory) Name() string
- func (factory *DevrantBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevrantBee ¶
DevrantBee is a Bee that can post blogs & quotes on Devrant.
func (*DevrantBee) Action ¶
func (mod *DevrantBee) Action(action bees.Action) []bees.Placeholder
Action triggers the action passed to it.
func (*DevrantBee) ReloadOptions ¶
func (mod *DevrantBee) ReloadOptions(options bees.BeeOptions)
ReloadOptions parses the config options and initializes the Bee.
func (*DevrantBee) Run ¶
func (mod *DevrantBee) Run(eventChan chan bees.Event)
Run executes the Bee's event loop.
type DevrantBeeFactory ¶
type DevrantBeeFactory struct {
bees.BeeFactory
}
DevrantBeeFactory is a factory for DevrantBees.
func (*DevrantBeeFactory) Actions ¶
func (factory *DevrantBeeFactory) Actions() []bees.ActionDescriptor
Actions describes the available actions provided by this Bee.
func (*DevrantBeeFactory) Description ¶
func (factory *DevrantBeeFactory) Description() string
Description returns the description of this Bee.
func (*DevrantBeeFactory) Events ¶
func (factory *DevrantBeeFactory) Events() []bees.EventDescriptor
Events describes the available events provided by this Bee.
func (*DevrantBeeFactory) ID ¶
func (factory *DevrantBeeFactory) ID() string
ID returns the ID of this Bee.
func (*DevrantBeeFactory) Image ¶
func (factory *DevrantBeeFactory) Image() string
Image returns the filename of an image for this Bee.
func (*DevrantBeeFactory) LogoColor ¶
func (factory *DevrantBeeFactory) LogoColor() string
LogoColor returns the preferred logo background color (used by the admin interface).
func (*DevrantBeeFactory) Name ¶
func (factory *DevrantBeeFactory) Name() string
Name returns the name of this Bee.
func (*DevrantBeeFactory) New ¶
func (factory *DevrantBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
New returns a new Bee instance configured with the supplied options.