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

package notificationbee

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

Package notificationbee is a Bee that can trigger desktop notifications.

Package notificationbee is a Bee that can trigger desktop notifications.

Index

Package Files

notificationbee.go notificationbee_unix.go notificationbeefactory.go

Constants

const (
    UrgencyLow = uint32(iota)
    UrgencyNormal
    UrgencyCritical
)

Urgency level iota

type NotificationBee Uses

type NotificationBee struct {
    bees.Bee
}

NotificationBee is a Bee that can trigger freedesktop.org DBus notifications.

func (*NotificationBee) Action Uses

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

Action triggers the action passed to it.

func (*NotificationBee) ReloadOptions Uses

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

ReloadOptions parses the config options and initializes the Bee.

func (*NotificationBee) Run Uses

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

Run executes the Bee's event loop.

type NotificationBeeFactory Uses

type NotificationBeeFactory struct {
    bees.BeeFactory
}

NotificationBeeFactory is a factory for NotificationBees.

func (*NotificationBeeFactory) Actions Uses

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

Actions describes the available actions provided by this Bee.

func (*NotificationBeeFactory) Description Uses

func (factory *NotificationBeeFactory) Description() string

Description returns the description of this Bee.

func (*NotificationBeeFactory) ID Uses

func (factory *NotificationBeeFactory) ID() string

ID returns the ID of this Bee.

func (*NotificationBeeFactory) Image Uses

func (factory *NotificationBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*NotificationBeeFactory) LogoColor Uses

func (factory *NotificationBeeFactory) LogoColor() string

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

func (*NotificationBeeFactory) Name Uses

func (factory *NotificationBeeFactory) Name() string

Name returns the name of this Bee.

func (*NotificationBeeFactory) New Uses

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

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

Package notificationbee imports 4 packages (graph) and is imported by 14 packages. Updated 2021-01-26. Refresh now. Tools for package owners.