syndicator

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 12 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