ginside

package module
v0.0.0-...-9c19306 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GInside

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

func NewGInside

func NewGInside(httpClient *http.Client) *GInside

func (*GInside) BoardMinorPosts

func (g *GInside) BoardMinorPosts(ctx context.Context, id string, recommended bool) (posts []Post, err error)

BoardMinorPosts returns the posts from the first page of a dcgall minor board

func (*GInside) BoardPosts

func (g *GInside) BoardPosts(ctx context.Context, id string, recommended bool) (posts []Post, err error)

BoardPosts returns the posts from the first page of a dcgall board

func (*GInside) PostDetails

func (g *GInside) PostDetails(ctx context.Context, link string) (*PostDetails, error)

type Post

type Post struct {
	ID      string
	Subject string
	Title   string
	Author  string
	Date    time.Time
	Hits    int
	Votes   int
	URL     string
}

Post contains information about a single dcinside post

type PostAttachment

type PostAttachment struct {
	URL      string
	Filename string
}

type PostDetails

type PostDetails struct {
	ID          string
	Title       string
	Author      string
	Date        time.Time
	URL         string
	ContentHTML string
	Attachments []PostAttachment
}

Jump to

Keyboard shortcuts

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