twitter

package
v0.20.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Twitter

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

func New

func New(client *http.Client, opts *config.Options) *Twitter

New returns a twitter client.

func (*Twitter) Publish

func (t *Twitter) Publish(ctx context.Context, rdx reduxer.Reduxer, cols []wayback.Collect, args ...string) error

Publish publish tweet to Twitter of given cols and args. A context should contain a `reduxer.Reduxer` via `publish.PubBundle` struct.

func (*Twitter) Shutdown added in v0.20.0

func (t *Twitter) Shutdown() error

Shutdown shuts down the Twitter publish service, it always return a nil error.

func (*Twitter) ToTwitter

func (t *Twitter) ToTwitter(ctx context.Context, body string) bool

Jump to

Keyboard shortcuts

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