client

package
v0.0.0-...-c18b0fc Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVideoMissingFromJSON = errors.New("video missing from json")

Functions

func GetArticle

func GetArticle(client *RedditClient, link *gReddit.Link) (*string, error)

func RssHandler

func RssHandler(redditURL string, now NowFn, client *RedditClient, getArticle GetArticleFn, w http.ResponseWriter, r *http.Request)

Types

type GetArticleFn

type GetArticleFn = func(client *RedditClient, link *reddit.Link) (*string, error)

type NowFn

type NowFn = func() time.Time

type RedditClient

type RedditClient struct {
	HttpClient *http.Client
	UserAgent  string
	Token      *oauth2.Token
}

Jump to

Keyboard shortcuts

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