syndicator

package
v3.0.1-0...-781ade8 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UID  string
	Name string
}

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) Add

func (m *Manager) Add(s Syndicator)

func (*Manager) Config

func (m *Manager) Config() []*Config

func (*Manager) Syndicate

func (m *Manager) Syndicate(entry *entry.Entry, syndicators []string) ([]string, error)

type Syndicator

type Syndicator interface {
	Syndicate(entry *entry.Entry) (url string, err error)
	IsByContext(entry *entry.Entry) bool
	Name() string
	Identifier() string
}

type Twitter

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

func NewTwitter

func NewTwitter(opts *config.Twitter) *Twitter

func (*Twitter) Identifier

func (t *Twitter) Identifier() string

func (*Twitter) IsByContext

func (t *Twitter) IsByContext(entry *entry.Entry) bool

func (*Twitter) Name

func (t *Twitter) Name() string

func (*Twitter) Syndicate

func (t *Twitter) Syndicate(entry *entry.Entry) (url string, err error)

Jump to

Keyboard shortcuts

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