render

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collect

type Collect struct {
	Arc, Ext, Src string

	Dst []map[string]string
}

type Collects

type Collects map[string]Collect

type GitHub

type GitHub struct {
	Cols []wayback.Collect
}

func (*GitHub) ForPublish

func (gh *GitHub) ForPublish() *Render

func (*GitHub) ForReply

func (gh *GitHub) ForReply() *Render

type Mastodon

type Mastodon struct {
	Cols []wayback.Collect
}

func (*Mastodon) ForPublish

func (m *Mastodon) ForPublish() *Render

func (*Mastodon) ForReply

func (m *Mastodon) ForReply() *Render

type Matrix

type Matrix struct {
	Cols []wayback.Collect
}

func (*Matrix) ForPublish

func (m *Matrix) ForPublish() *Render

func (*Matrix) ForReply

func (m *Matrix) ForReply() *Render

type Relaychat

type Relaychat struct {
	Cols []wayback.Collect
}

func (*Relaychat) ForPublish

func (i *Relaychat) ForPublish() *Render

func (*Relaychat) ForReply

func (i *Relaychat) ForReply() *Render

type Render

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

func ForPublish

func ForPublish(r Renderer) *Render

func ForReply

func ForReply(r Renderer) *Render

func (*Render) String

func (r *Render) String() (text string)

type Renderer

type Renderer interface {
	ForReply() *Render
	ForPublish() *Render
}

type Telegram

type Telegram struct {
	Cols []wayback.Collect
}

func (*Telegram) ForPublish

func (t *Telegram) ForPublish() (r *Render)

func (*Telegram) ForReply

func (t *Telegram) ForReply() (r *Render)

type Twitter

type Twitter struct {
	Cols []wayback.Collect
}

func (*Twitter) ForPublish

func (t *Twitter) ForPublish() *Render

ForPublish generate tweet of given wayback collects in Twitter struct. It excluded telegra.ph, because this link has been identified by Twitter.

func (*Twitter) ForReply

func (t *Twitter) ForReply() *Render

Jump to

Keyboard shortcuts

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