client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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