beehive: Index | Files

package webbee

import ""

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


Package Files

webbee.go webbeefactory.go

type WebBee Uses

type WebBee struct {
    // 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 {

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.