blog

package
v0.0.0-...-ca68a2b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogEntry

type BlogEntry struct {
	ID                      int64    `json:"id"`                      // .ID
	OriginalLocale          string   `json:"originalLocale"`          // .Original locale of the blog entry.
	CreationTimeSeconds     int64    `json:"creationTimeSeconds"`     // .Time, when blog entry was created, in unix format.
	AuthorHandle            string   `json:"authorHandle"`            // .Author user handle.
	Title                   string   `json:"title"`                   // .Localized.
	Content                 string   `json:"content"`                 // .Localized. Not included in short version.
	Locale                  string   `json:"locale"`                  //. Locale
	ModificationTimeSeconds int64    `json:"modificationTimeSeconds"` // .Time, when blog entry has been updated, in unix format.
	AllowViewHistory        bool     `json:"allowViewHistory"`        // .If true, you can view any specific revision of the blog entry.
	Tags                    []string `json:"tags"`                    // .tags
	Rating                  int64    `json:"rating"`                  // .rating
}

func View

func View(cli *client.Client, id int64) (*BlogEntry, error)

type Comment

type Comment struct {
	ID                  int64  `json:"id"`                  // . ID
	CreationTimeSeconds int64  `json:"creationTimeSeconds"` // . Time, when comment was created, in unix format.
	CommentatorHandle   string `json:"commentatorHandle"`   // . CommentatorHandle
	Locale              string `json:"locale"`              // . Locale
	Text                string `json:"text"`                // . Text
	ParentCommentID     int64  `json:"parentCommentId"`     // . Can be absent.
	Rating              int64  `json:"rating"`              // . Rating
}

func Comments

func Comments(cli *client.Client, id int64) ([]Comment, error)

Jump to

Keyboard shortcuts

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