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

package hellobee

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

Package hellobee is an example for a Bee skeleton, designed to help you get started with writing your own Bees.

Index

Package Files

hellobee.go hellobeefactory.go

type HelloBee Uses

type HelloBee struct {
    bees.Bee
}

HelloBee is an example for a Bee skeleton, designed to help you get started with writing your own Bees.

func (*HelloBee) Action Uses

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

Action triggers the action passed to it.

func (*HelloBee) ReloadOptions Uses

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

ReloadOptions parses the config options and initializes the Bee.

func (*HelloBee) Run Uses

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

Run executes the Bee's event loop.

type HelloBeeFactory Uses

type HelloBeeFactory struct {
    bees.BeeFactory
}

HelloBeeFactory is a factory for HelloBees.

func (*HelloBeeFactory) Description Uses

func (factory *HelloBeeFactory) Description() string

Description returns the description of this Bee.

func (*HelloBeeFactory) ID Uses

func (factory *HelloBeeFactory) ID() string

ID returns the ID of this Bee.

func (*HelloBeeFactory) Name Uses

func (factory *HelloBeeFactory) Name() string

Name returns the name of this Bee.

func (*HelloBeeFactory) New Uses

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

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

Package hellobee imports 1 packages (graph). Updated 2017-02-11. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).