types

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comments

type Comments struct {
	Data struct {
		Children []struct {
			Data InternalCommentData `json:"data"`
		} `json:"children"`
	} `json:"data"`
}

type InternalCommentData

type InternalCommentData struct {
	Replies     any    `json:"replies"`
	Author      string `json:"author"`
	AuthorFlair string `json:"author_flair_text"`
	Body        string `json:"body"`
	Permalink   string `json:"permalink"`
	VReplies    []InternalCommentData
	Depth       float64 `json:"depth"`
	Ups         float64 `json:"ups"`
	Created     float64 `json:"created"`
}

type InternalMetaData

type InternalMetaData struct {
	// M string `json:"m"`
	S struct {
		U   string `json:"u"`
		MP4 string `json:"mp4"`
	} `json:"s"`
	P []struct {
		U string `json:"u"`
	} `json:"p"`
}

type InternalVData

type InternalVData struct {
	Link                    string
	AutoChosenPosterQuality string
	Video                   bool
}

MediaMetaData - Galleries

type Posts

type Posts struct {
	Data struct {
		After    string `json:"after"`
		Children []struct {
			Data internalPostData `json:"data"`
		} `json:"children"`
	} `json:"data"`
}

type Subreddit

type Subreddit struct {
	Data struct {
		Title               string  `json:"title"`
		PrimaryColor        string  `json:"primary_color"`
		DisplayNamePrefixed string  `json:"display_name_prefixed"`
		Description         string  `json:"public_description"`
		CommunityIcon       string  `json:"community_icon"`
		Banner              string  `json:"banner_background_image"`
		ActiveUserCount     float64 `json:"accounts_active"`
		MemberCount         float64 `json:"subscribers"`
		Created             float64 `json:"created"`
		NSFW                bool    `json:"over18"`
	} `json:"data"`
}

The Subreddit and Posts themselves

Jump to

Keyboard shortcuts

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