Documentation ¶
Index ¶
- func NewDiscord(bot *discord.Session) *discordBot
- func NewGitHub(httpClient *http.Client) *gitHub
- func NewIRC(conn *irc.Connection) *ircBot
- func NewMastodon(client *mstdn.Client) *mastodon
- func NewMatrix(client *matrix.Client) *matrixBot
- func NewSlack(bot *slack.Client) *slackBot
- func NewTelegram(bot *telegram.Bot) *telegramBot
- func NewTwitter(client *twitter.Client) *twitterBot
- func To(ctx context.Context, cols []wayback.Collect, args ...string)
- func UploadToDiscord(bundle *reduxer.Bundle) (files []*discord.File)
- func UploadToSlack(client *slack.Client, bundle *reduxer.Bundle, channel, timestamp string) (err error)
- func UploadToTelegram(bundle *reduxer.Bundle) telegram.Album
- type Flag
- type Publisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscord ¶ added in v0.15.1
NewDiscord returns Discord bot client
func NewIRC ¶ added in v0.9.0
func NewIRC(conn *irc.Connection) *ircBot
NewIRC returns a ircBot struct
func NewMastodon ¶ added in v0.8.0
NewMastodon returns a mastodon client.
func NewTelegram ¶ added in v0.10.0
NewTelegram returns Telegram bot client
func NewTwitter ¶ added in v0.8.0
NewTwitter returns a twitterBot client.
func UploadToDiscord ¶ added in v0.15.1
UploadToDiscord composes files that share with Discord by a given bundle.
Types ¶
type Flag ¶ added in v0.16.0
type Flag uint8
Flag represents a type of uint8
const ( FlagWeb Flag = iota // FlagWeb publish from httpd service FlagTelegram // FlagTelegram publish from telegram service FlagTwitter // FlagTwitter publish from twitter srvice FlagMastodon // FlagMastodon publish from mastodon service FlagDiscord // FlagDiscord publish from discord service FlagMatrix // FlagMatrix publish from matrix service FlagSlack // FlagSlack publish from slack service FlagIRC // FlagIRC publish from relaychat service PubBundle = "reduxer-bundle" // Publish bundle key in a context with value )
Click to show internal directories.
Click to hide internal directories.