beehive: Index | Files

package mastodonbee

import ""

*    Copyright (C) 2020 Christian Muehlhaeuser
*                  2020 Nicolas Martin
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU Affero General Public License as published
*    by the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    GNU Affero General Public License for more details.
*    You should have received a copy of the GNU Affero General Public License
*    along with this program.  If not, see <>.
*    Authors:
*      Christian Muehlhaeuser <>
*      Nicolas Martin <>

Package mastodonbee is a Bee that can connect to mastodon.


Package Files

events.go mastodonbee.go mastodonbeefactory.go

type MastodonBee Uses

type MastodonBee struct {
    // contains filtered or unexported fields

MastodonBee is a Bee that can connect to mastodon.

func (*MastodonBee) Action Uses

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

Action triggers the action passed to it.

func (*MastodonBee) ReloadOptions Uses

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

ReloadOptions parses the config options and initializes the Bee.

func (*MastodonBee) Run Uses

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

Run executes the Bee's event loop.

type MastodonBeeFactory Uses

type MastodonBeeFactory struct {

MastodonBeeFactory is a factory for mastodonBees.

func (*MastodonBeeFactory) Actions Uses

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

Actions describes the available actions provided by this Bee.

func (*MastodonBeeFactory) Description Uses

func (factory *MastodonBeeFactory) Description() string

Description returns the description of this Bee.

func (*MastodonBeeFactory) Events Uses

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

Events describes the available events provided by this Bee.

func (*MastodonBeeFactory) ID Uses

func (factory *MastodonBeeFactory) ID() string

ID returns the ID of this Bee.

func (*MastodonBeeFactory) Image Uses

func (factory *MastodonBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*MastodonBeeFactory) LogoColor Uses

func (factory *MastodonBeeFactory) LogoColor() string

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

func (*MastodonBeeFactory) Name Uses

func (factory *MastodonBeeFactory) Name() string

Name returns the name of this Bee.

func (*MastodonBeeFactory) New Uses

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

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

func (*MastodonBeeFactory) Options Uses

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

Options returns the options available to configure this Bee.

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