reddit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 10 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 {
	ClientID       string
	ClientSecret   string
	RedditUsername string
}

type Parser

type Parser struct {
	Config *Config
	// contains filtered or unexported fields
}

Parser implements parsing for Reddit URLs.

func (*Parser) Init

func (p *Parser) Init(_ context.Context) error

Init initializes this parser.

func (*Parser) Name

func (p *Parser) Name() string

Name returns the parser's descriptive name.

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, u *url.URL, referer *url.URL) (result parsers.ParseResult)

Parse parses the given URL.

Jump to

Keyboard shortcuts

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