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

package webbee

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

Package webbee is a Bee that starts an HTTP server and fires events for incoming requests.

Index

Package Files

webbee.go webbeefactory.go

type WebBee Uses

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

WebBee is a Bee that starts an HTTP server and fires events for incoming requests.

func (*WebBee) ReloadOptions Uses

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

ReloadOptions parses the config options and initializes the Bee.

func (*WebBee) Run Uses

func (mod *WebBee) Run(cin chan bees.Event)

Run executes the Bee's event loop.

func (*WebBee) ServeHTTP Uses

func (mod *WebBee) ServeHTTP(w http.ResponseWriter, req *http.Request)

type WebBeeFactory Uses

type WebBeeFactory struct {
    bees.BeeFactory
}

WebBeeFactory is a factory for WebBees.

func (*WebBeeFactory) Description Uses

func (factory *WebBeeFactory) Description() string

Description returns the description of this Bee.

func (*WebBeeFactory) Events Uses

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

Events describes the available events provided by this Bee.

func (*WebBeeFactory) ID Uses

func (factory *WebBeeFactory) ID() string

ID returns the ID of this Bee.

func (*WebBeeFactory) Image Uses

func (factory *WebBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*WebBeeFactory) LogoColor Uses

func (factory *WebBeeFactory) LogoColor() string

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

func (*WebBeeFactory) Name Uses

func (factory *WebBeeFactory) Name() string

Name returns the name of this Bee.

func (*WebBeeFactory) New Uses

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

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

func (*WebBeeFactory) Options Uses

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

Options returns the options available to configure this Bee.

Package webbee imports 6 packages (graph) and is imported by 14 packages. Updated 2018-10-17. Refresh now. Tools for package owners.