tinderbee

package
v0.0.0-...-42619b2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tinderbee is a Bee that can post blogs & quotes on Tinder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TinderBee

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

TinderBee is a Bee that can post blogs & quotes on Tinder.

func (*TinderBee) Action

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

Action triggers the action passed to it.

func (*TinderBee) ReloadOptions

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

ReloadOptions parses the config options and initializes the Bee.

func (*TinderBee) Run

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

Run executes the Bee's event loop.

func (*TinderBee) TriggerRecommendationsEvent

func (mod *TinderBee) TriggerRecommendationsEvent(recs *tinder.RecommendationsResponse)

TriggerRecommendationsEvent triggers a recommendation event

func (*TinderBee) TriggerUpdateEvent

func (mod *TinderBee) TriggerUpdateEvent(update *tinder.UpdatesResponse)

TriggerUpdateEvent triggers an update event

func (*TinderBee) TriggerUserEvents

func (mod *TinderBee) TriggerUserEvents(user *tinder.UserResponse)

TriggerUserEvents triggers all events for the given user

type TinderBeeFactory

type TinderBeeFactory struct {
	bees.BeeFactory
}

TinderBeeFactory is a factory for TinderBees.

func (*TinderBeeFactory) Actions

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

Actions describes the available actions provided by this Bee.

func (*TinderBeeFactory) Description

func (factory *TinderBeeFactory) Description() string

Description returns the description of this Bee.

func (*TinderBeeFactory) Events

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

Events describes the available events provided by this Bee.

func (*TinderBeeFactory) ID

func (factory *TinderBeeFactory) ID() string

ID returns the ID of this Bee.

func (*TinderBeeFactory) Image

func (factory *TinderBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*TinderBeeFactory) LogoColor

func (factory *TinderBeeFactory) LogoColor() string

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

func (*TinderBeeFactory) Name

func (factory *TinderBeeFactory) Name() string

Name returns the name of this Bee.

func (*TinderBeeFactory) New

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

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

func (*TinderBeeFactory) Options

func (factory *TinderBeeFactory) 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