ipify

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

README

Ipify Bee

Queries ipify.org for the public IP and sends an event if the IP changed.

Configuration

  • interval: Interval (in seconds) between requests sent to ipify.org

Credits

ipify logo: https://github.com/rdegges/ipify-www/blob/master/static/images/globe.png

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpifyBee

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

func (*IpifyBee) Action

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

Action triggers the action passed to it.

func (*IpifyBee) ReloadOptions

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

ReloadOptions parses the config options and initializes the Bee.

func (*IpifyBee) Run

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

Run executes the Bee's event loop.

type IpifyBeeFactory

type IpifyBeeFactory struct {
	bees.BeeFactory
}

IpifyBeeFactory takes care of initializing IpifyBee

func (*IpifyBeeFactory) Description

func (factory *IpifyBeeFactory) Description() string

Description returns the description of this Bee.

func (*IpifyBeeFactory) Events

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

Events describes the available events provided by this Bee.

func (*IpifyBeeFactory) ID

func (factory *IpifyBeeFactory) ID() string

ID returns the ID of this Bee.

func (*IpifyBeeFactory) Image

func (factory *IpifyBeeFactory) Image() string

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

func (*IpifyBeeFactory) Name

func (factory *IpifyBeeFactory) Name() string

Name returns the name of this Bee.

func (*IpifyBeeFactory) New

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

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

func (*IpifyBeeFactory) Options

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

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL