publish

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render added in v0.5.5

func Render(vars []*wayback.Collect) string

func ToChannel

func ToChannel(opts *config.Options, bot *tgbotapi.BotAPI, text string) bool

ToChannel for publish to message to Telegram channel, returns boolean as result.

func ToIssues added in v0.7.0

func ToIssues(ctx context.Context, opts *config.Options, text string) bool

Types

type GitHub added in v0.7.0

type GitHub struct {
	// contains filtered or unexported fields
}

func NewGitHub added in v0.7.0

func NewGitHub() *GitHub

func (*GitHub) Render added in v0.7.0

func (gh *GitHub) Render(vars []*wayback.Collect) string

type Mastodon added in v0.8.0

type Mastodon struct {
	// contains filtered or unexported fields
}

func NewMastodon added in v0.8.0

func NewMastodon(client *mstdn.Client, opts *config.Options) *Mastodon

func (*Mastodon) Render added in v0.8.0

func (m *Mastodon) Render(vars []*wayback.Collect) string

func (*Mastodon) ToMastodon added in v0.8.0

func (m *Mastodon) ToMastodon(ctx context.Context, opts *config.Options, text, id string) bool

type Twitter added in v0.8.0

type Twitter struct {
	// contains filtered or unexported fields
}

func NewTwitter added in v0.8.0

func NewTwitter(client *twitter.Client, opts *config.Options) *Twitter

func (*Twitter) Render added in v0.8.0

func (m *Twitter) Render(vars []*wayback.Collect) string

func (*Twitter) ToTwitter added in v0.8.0

func (t *Twitter) ToTwitter(_ context.Context, opts *config.Options, text string) bool

Jump to

Keyboard shortcuts

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