import "github.com/muesli/beehive/bees/mastodonbee"
* 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 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 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 <http://www.gnu.org/licenses/>. * * Authors: * Christian Muehlhaeuser <muesli@gmail.com> * Nicolas Martin <penguwin@penguwin.eu>
Package mastodonbee is a Bee that can connect to mastodon.
events.go mastodonbee.go mastodonbeefactory.go
MastodonBee is a Bee that can connect to mastodon.
func (mod *MastodonBee) Action(action bees.Action) []bees.Placeholder
Action triggers the action passed to it.
func (mod *MastodonBee) ReloadOptions(options bees.BeeOptions)
ReloadOptions parses the config options and initializes the Bee.
func (mod *MastodonBee) Run(eventChan chan bees.Event)
Run executes the Bee's event loop.
type MastodonBeeFactory struct { bees.BeeFactory }
MastodonBeeFactory is a factory for mastodonBees.
func (factory *MastodonBeeFactory) Actions() []bees.ActionDescriptor
Actions describes the available actions provided by this Bee.
func (factory *MastodonBeeFactory) Description() string
Description returns the description of this Bee.
func (factory *MastodonBeeFactory) Events() []bees.EventDescriptor
Events describes the available events provided by this Bee.
func (factory *MastodonBeeFactory) ID() string
ID returns the ID of this Bee.
func (factory *MastodonBeeFactory) Image() string
Image returns the filename of an image for this Bee.
func (factory *MastodonBeeFactory) LogoColor() string
LogoColor returns the preferred logo background color (used by the admin interface).
func (factory *MastodonBeeFactory) Name() string
Name returns the name of this Bee.
func (factory *MastodonBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
New returns a new Bee instance configured with the supplied options.
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.