Documentation ¶
Overview ¶
Package sunbee is a bee that sends sunrise/sunset event based on the selected location.
Index ¶
- type SunBee
- type SunBeeFactory
- func (factory *SunBeeFactory) Description() string
- func (factory *SunBeeFactory) Events() []bees.EventDescriptor
- func (factory *SunBeeFactory) ID() string
- func (factory *SunBeeFactory) Image() string
- func (factory *SunBeeFactory) Name() string
- func (factory *SunBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
- func (factory *SunBeeFactory) Options() []bees.BeeOptionDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SunBee ¶
SunBee is a Bee that alerts you when the sun goes up/down.
func (*SunBee) Action ¶
func (mod *SunBee) Action(action bees.Action) []bees.Placeholder
Action triggers the action passed to it.
func (*SunBee) ReloadOptions ¶
func (mod *SunBee) ReloadOptions(options bees.BeeOptions)
ReloadOptions parses the config options and initializes the Bee.
type SunBeeFactory ¶
type SunBeeFactory struct {
bees.BeeFactory
}
SunBeeFactory is a factory for SunBees.
func (*SunBeeFactory) Description ¶
func (factory *SunBeeFactory) Description() string
Description returns the description of this Bee.
func (*SunBeeFactory) Events ¶
func (factory *SunBeeFactory) Events() []bees.EventDescriptor
func (*SunBeeFactory) Image ¶
func (factory *SunBeeFactory) Image() string
Image returns the filename of an image for this Bee.
func (*SunBeeFactory) Name ¶
func (factory *SunBeeFactory) Name() string
Name returns the name of this Bee.
func (*SunBeeFactory) New ¶
func (factory *SunBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
New returns a new Bee instance configured with the supplied options.
func (*SunBeeFactory) Options ¶
func (factory *SunBeeFactory) Options() []bees.BeeOptionDescriptor
Options returns the options available to configure this Bee.
Click to show internal directories.
Click to hide internal directories.