plugins

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package plugins provides a collection of example (and usable) plugins for instances of slackscot

Package plugins provides a collection of example (and usable) plugins for instances of slackscot

Index

Constants

View Source
const (
	// EmojiBannerPluginName holds identifying name for the emoji banner plugin
	EmojiBannerPluginName = "emojiBanner"
)
View Source
const (
	// FingerQuoterPluginName holds identifying name for the finger quoter plugin
	FingerQuoterPluginName = "fingerQuoter"
)
View Source
const (
	// KarmaPluginName holds identifying name for the karma plugin
	KarmaPluginName = "karma"
)
View Source
const (
	// OhMondayPluginName holds identifying name for the karma plugin
	OhMondayPluginName = "ohMonday"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmojiBannerMaker

type EmojiBannerMaker struct {
	slackscot.Plugin
	// contains filtered or unexported fields
}

EmojiBannerMaker holds the plugin data for the emoji banner maker plugin

func NewEmojiBannerMaker

func NewEmojiBannerMaker(c *config.PluginConfig) (emojiBannerPlugin *EmojiBannerMaker, err error)

NewEmojiBannerMaker creates a new instance of the plugin. Note that since it creates a temporary directory to store fonts, the caller should make sure to defer Close on shutdown

func (*EmojiBannerMaker) Close

func (e *EmojiBannerMaker) Close()

Close cleans up resources (temp font directory) used by the plugin

type FingerQuoter

type FingerQuoter struct {
	slackscot.Plugin
	// contains filtered or unexported fields
}

FingerQuoter holds the plugin data for the finger quoter plugin

func NewFingerQuoter

func NewFingerQuoter(config *config.PluginConfig) (f *FingerQuoter, err error)

NewFingerQuoter creates a new instance of the plugin

type Karma

type Karma struct {
	slackscot.Plugin
	// contains filtered or unexported fields
}

Karma holds the plugin data for the karma plugin

func NewKarma

func NewKarma(strStorer store.StringStorer) (karma *Karma)

NewKarma creates a new instance of the Karma plugin

type OhMonday

type OhMonday struct {
	slackscot.Plugin
	// contains filtered or unexported fields
}

OhMonday holds the plugin data for the Oh Monday plugin

func NewOhMonday

func NewOhMonday(c *config.PluginConfig) (o *OhMonday, err error)

NewOhMonday creates a new instance of the OhMonday plugin

type Versioner

type Versioner struct {
	slackscot.Plugin
}

Versioner holds the plugin data for the karma plugin

func NewVersioner

func NewVersioner(name string, version string) *Versioner

NewVersioner creates a new instance of the versioner plugin

Jump to

Keyboard shortcuts

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