export

package
v0.0.0-...-0c2c550 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comments

func Comments(doc *html.Node) ([]item.Comment, error)

Comments functions similarly to Submissions, excepts parses the document for comments.

func Submissions

func Submissions(doc *html.Node) ([]item.Story, error)

Submissions will parse the given document for stories, returning the stories it has found.

Types

type Client

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

func DefaultClient

func DefaultClient(user auth.User) *Client

DefaultClient returns a Client associated with (but not authenticated with) the given user.

func NewClient

func NewClient(user auth.User) (*Client, error)

NewClient returns a Client authenticated with the given user.

func (*Client) GetPage

func (c *Client) GetPage(saveType, itemType string, page int) ([]item.Itemizer, error)

GetPage will return a slice of items from the user's saved items.

Jump to

Keyboard shortcuts

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