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

package redisbee

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

Index

Package Files

redisbee.go redisbeefactory.go

type RedisBee Uses

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

RedisBee is able to pubsub to Redis and store key/values

func (*RedisBee) Action Uses

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

Action triggers the action passed to it.

func (*RedisBee) ReloadOptions Uses

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

ReloadOptions parses the config options and initializes the Bee.

func (*RedisBee) Run Uses

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

Run executes the Bee's event loop.

type RedisBeeFactory Uses

type RedisBeeFactory struct {
    bees.BeeFactory
}

RedisBeeFactory takes care of initializing RedisBee

func (*RedisBeeFactory) Actions Uses

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

Actions describes the available actions provided by this Bee.

func (*RedisBeeFactory) Description Uses

func (factory *RedisBeeFactory) Description() string

Description returns the description of this Bee.

func (*RedisBeeFactory) Events Uses

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

Events describes the available events provided by this Bee.

func (*RedisBeeFactory) ID Uses

func (factory *RedisBeeFactory) ID() string

ID returns the ID of this Bee.

func (*RedisBeeFactory) Image Uses

func (factory *RedisBeeFactory) Image() string

Image returns the asset name of this Bee (in the assets/bees folder)

func (*RedisBeeFactory) Name Uses

func (factory *RedisBeeFactory) Name() string

Name returns the name of this Bee.

func (*RedisBeeFactory) New Uses

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

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

func (*RedisBeeFactory) Options Uses

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

Options returns the options available to configure this Bee.

Package redisbee imports 5 packages (graph) and is imported by 2 packages. Updated 2020-05-07. Refresh now. Tools for package owners.